Showing 14 of 18 total issues
cliArguments
has 98 functions (exceeds 20 allowed). Consider refactoring. Open
Open
const cliArguments: CliArguments = {
'--debug': () => setConfigValue('debugMode', true),
'-d': () => setConfigValue('debugMode', true),
'--noCamelizeTokenNames': () => setConfigValue('camelizeTokenNames', false),
'-cml': () => setConfigValue('camelizeTokenNames', false),
Function matchOther
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
expectedValue: ExpectedValue,
remSize: number,
outputFormatColors: OutputFormatColors,
tokens: Tokens,
tokenFileName: string,
Function matchPadding
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
expectedValue: ExpectedValue,
remSize: number,
tokens: Tokens,
tokenFileName: string,
property: string,
Function getTokenMatch
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
tokens: Tokens,
tokenFileName: string,
property: string,
expectedValue: ExpectedValue,
remSize: number,
Function getData
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
recompileLocal: boolean,
figmagicFolder: string,
figmaData: string,
token: string | null,
url: string | null,
Consider simplifying this complex logical expression. Open
Open
if (
!getFileContentAndPathOperation.type ||
!getFileContentAndPathOperation.file ||
!getFileContentAndPathOperation.path ||
!getFileContentAndPathOperation.name ||
Function parseCssFromElement
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
layoutElement: Frame,
textElement: Frame | null,
remSize: number,
outputFormatToken: string,
outputFolderTokens: string
Function makeBorderWidthToken
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
item: Frame,
borderWidths: Record<string, unknown>,
remSize: number,
borderWidthUnit: string,
camelizeTokenNames?: boolean
Function makeFontSizeToken
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
item: Frame,
fontSizes: Record<string, string>,
remSize: number,
fontUnit: string,
camelizeTokenNames?: boolean
Function makeSpacingToken
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
item: Frame,
spacings: Record<string, string>,
spacingUnit: SpacingUnit,
remSize: number,
camelizeTokenNames?: boolean
Function makeLineHeightTokens
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
lineHeightFrame: Frame,
remSize: number,
unitlessPrecision?: number,
lineHeightUnit?: LineHeightUnit,
camelizeTokenNames?: boolean
Function makeLineHeightToken
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
item: Frame,
remSize: number,
unitlessPrecision = 2,
lineHeightUnit?: LineHeightUnit,
camelizeTokenNames?: boolean
Function makeShadowToken
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
item: Frame,
shadows: Record<string, string>,
shadowUnit: ShadowUnit,
remSize: number,
camelizeTokenNames?: boolean
Function makeRadiusToken
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
item: Frame,
cornerRadii: Record<string, string>,
radiusUnit: RadiusUnit,
remSize: number,
camelizeTokenNames?: boolean