Skip to content

Commit 25e4140

Browse files
committed
Linter: Pluralize Fixed x offense(s) output in CLI
1 parent 522e41a commit 25e4140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/packages/linter/src/cli/file-processor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class FileProcessor {
145145
filesFixed++
146146

147147
if (formatOption !== 'json') {
148-
console.log(`${colorize("✓", "brightGreen")} ${colorize(filename, "cyan")} - ${colorize(`Fixed ${autofixResult.fixed.length} offense(s)`, "green")}`)
148+
console.log(`${colorize("✓", "brightGreen")} ${colorize(filename, "cyan")} - ${colorize(`Fixed ${autofixResult.fixed.length} ${autofixResult.fixed.length === 1 ? "offense" : "offenses"}`, "green")}`)
149149
}
150150
}
151151

0 commit comments

Comments
 (0)