mikaelvesavuori/figmagic

View on GitHub

Showing 14 of 18 total issues

cliArguments has 98 functions (exceeds 20 allowed). Consider refactoring.
Open

  const cliArguments: CliArguments = {
    '--debug': () => setConfigValue('debugMode', true),
    '-d': () => setConfigValue('debugMode', true),
    '--noCamelizeTokenNames': () => setConfigValue('camelizeTokenNames', false),
    '-cml': () => setConfigValue('camelizeTokenNames', false),
Severity: Major
Found in bin/entities/Config/logic/parseCliArgs.ts - About 1 day to fix

    Function matchOther has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      expectedValue: ExpectedValue,
      remSize: number,
      outputFormatColors: OutputFormatColors,
      tokens: Tokens,
      tokenFileName: string,
    Severity: Major
    Found in bin/entities/FigmagicElement/logic/getTokenMatch.ts - About 1 hr to fix

      Function matchPadding has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        expectedValue: ExpectedValue,
        remSize: number,
        tokens: Tokens,
        tokenFileName: string,
        property: string,
      Severity: Major
      Found in bin/entities/FigmagicElement/logic/getTokenMatch.ts - About 50 mins to fix

        Function getTokenMatch has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          tokens: Tokens,
          tokenFileName: string,
          property: string,
          expectedValue: ExpectedValue,
          remSize: number,
        Severity: Minor
        Found in bin/entities/FigmagicElement/logic/getTokenMatch.ts - About 45 mins to fix

          Function getData has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            recompileLocal: boolean,
            figmagicFolder: string,
            figmaData: string,
            token: string | null,
            url: string | null,
          Severity: Minor
          Found in bin/frameworks/network/getData.ts - About 45 mins to fix

            Consider simplifying this complex logical expression.
            Open

              if (
                !getFileContentAndPathOperation.type ||
                !getFileContentAndPathOperation.file ||
                !getFileContentAndPathOperation.path ||
                !getFileContentAndPathOperation.name ||
            Severity: Major
            Found in bin/frameworks/filesystem/getFileContentAndPath.ts - About 40 mins to fix

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

                layoutElement: Frame,
                textElement: Frame | null,
                remSize: number,
                outputFormatToken: string,
                outputFolderTokens: string
              Severity: Minor
              Found in bin/entities/FigmagicElement/logic/parseCssFromElement.ts - About 35 mins to fix

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

                  item: Frame,
                  borderWidths: Record<string, unknown>,
                  remSize: number,
                  borderWidthUnit: string,
                  camelizeTokenNames?: boolean
                Severity: Minor
                Found in bin/entities/Token/logic/makeBorderWidthTokens.ts - About 35 mins to fix

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

                    item: Frame,
                    fontSizes: Record<string, string>,
                    remSize: number,
                    fontUnit: string,
                    camelizeTokenNames?: boolean
                  Severity: Minor
                  Found in bin/entities/Token/logic/makeFontSizeTokens.ts - About 35 mins to fix

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

                      item: Frame,
                      spacings: Record<string, string>,
                      spacingUnit: SpacingUnit,
                      remSize: number,
                      camelizeTokenNames?: boolean
                    Severity: Minor
                    Found in bin/entities/Token/logic/makeSpacingTokens.ts - About 35 mins to fix

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

                        lineHeightFrame: Frame,
                        remSize: number,
                        unitlessPrecision?: number,
                        lineHeightUnit?: LineHeightUnit,
                        camelizeTokenNames?: boolean
                      Severity: Minor
                      Found in bin/entities/Token/logic/makeLineHeightTokens.ts - About 35 mins to fix

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

                          item: Frame,
                          remSize: number,
                          unitlessPrecision = 2,
                          lineHeightUnit?: LineHeightUnit,
                          camelizeTokenNames?: boolean
                        Severity: Minor
                        Found in bin/entities/Token/logic/makeLineHeightTokens.ts - About 35 mins to fix

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

                            item: Frame,
                            shadows: Record<string, string>,
                            shadowUnit: ShadowUnit,
                            remSize: number,
                            camelizeTokenNames?: boolean
                          Severity: Minor
                          Found in bin/entities/Token/logic/makeShadowTokens.ts - About 35 mins to fix

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

                              item: Frame,
                              cornerRadii: Record<string, string>,
                              radiusUnit: RadiusUnit,
                              remSize: number,
                              camelizeTokenNames?: boolean
                            Severity: Minor
                            Found in bin/entities/Token/logic/makeRadiusTokens.ts - About 35 mins to fix
                              Severity
                              Category
                              Status
                              Source
                              Language