leonitousconforti/tinyburg

View on GitHub
packages/nucleus/src/modify-save.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function modifySave has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const modifySave = async function <
    T extends INimblebitJsonSave | DecompressedSave,
    U extends keyof INimblebitJsonSave | (readonly [] | readonly (keyof INimblebitJsonSave)[]),
    V extends U extends keyof INimblebitJsonSave
        ? INimblebitJsonSave[U]
Severity: Minor
Found in packages/nucleus/src/modify-save.ts - About 1 hr to fix

    Function modifySave has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    >(saveDataToModify: T, keys: U, values: V, forceLoadStructs: boolean = false, logger: ILogger = debug): Promise<T> {
    Severity: Minor
    Found in packages/nucleus/src/modify-save.ts - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status