Skip to content

Commit

Permalink
fix: update CLIReporter error message to be more clear about the fix …
Browse files Browse the repository at this point in the history
…command
  • Loading branch information
vlasy committed Aug 27, 2020
1 parent 3e37361 commit 1baa2dc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/reporters/CLIReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,15 @@ export class CLIReporter implements IReporter {
p.practice.fix && p.evaluation === PracticeEvaluationResult.notPracticing;
const fixablePractices = cwp.practicesAndComponents.filter(fixablePractice);
if (fixablePractices.length) {
lines.push(bold(yellow(`These practices might be automatically fixed (re-run the command with ${italic('--fix')} option):`)));
lines.push(
bold(
yellow(
`These practices might be automatically fixed (re-run the command with ${italic('--fix')} option and on a ${bold(
'local',
)} folder):`,
),
),
);
lines.push('');

for (const p of fixablePractices) {
Expand Down

0 comments on commit 1baa2dc

Please sign in to comment.