Skip to content

Commit 88da14b

Browse files
author
Kapil Borle
committed
Update verbose messages for invoke-formatter
1 parent 2f8b6da commit 88da14b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Engine/Formatter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public static string Format<TCmdlet>(
4343
continue;
4444
}
4545

46-
cmdlet.WriteVerbose("Running " + rule);
4746
var currentSettings = GetCurrentSettings(settings, rule);
4847
ScriptAnalyzer.Instance.UpdateSettings(currentSettings);
4948
ScriptAnalyzer.Instance.Initialize(cmdlet, null, null, null, null, true, false);

Engine/ScriptAnalyzer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,8 +1571,10 @@ public EditableText Fix(EditableText text, Range range, out Range updatedRange)
15711571
.Where(sc => isRangeNull || (sc.Start >= range.Start && sc.End <= range.End))
15721572
.ToList();
15731573

1574+
this.outputWriter.WriteVerbose($"Found {corrections.Count} violations.");
15741575
int unusedCorrections;
15751576
Fix(text, corrections, out unusedCorrections);
1577+
this.outputWriter.WriteVerbose($"Fixed {corrections.Count - unusedCorrections} violations.");
15761578

15771579
// This is an indication of an infinite loop. There is a small chance of this.
15781580
// It is better to abort the fixing operation at this point.

0 commit comments

Comments
 (0)