diff --git a/src/commands/metalint/run.ts b/src/commands/metalint/run.ts index 59d9ec7..ecbd77f 100644 --- a/src/commands/metalint/run.ts +++ b/src/commands/metalint/run.ts @@ -53,14 +53,14 @@ export default class MetalintRun extends SfCommand { let results = ''; - const formatFunctions = { + const resultFormatters = { sarif: generateSarifResults, csv: generateCsvResults, table: generateTableResults, }; this.spinner.start(`Generating ${format}...`); - results = formatFunctions[format](ruleResults); + results = resultFormatters[format](ruleResults); this.spinner.stop(); await readConfigFile(); @@ -69,6 +69,7 @@ export default class MetalintRun extends SfCommand { } } +// TODO move elsewhere? function executeRules(ruleIdsToRun: string[], files: string[]): RuleResults { const ruleClasses = rulesModule as RuleClasses; const ruleResults: RuleResults = {};