Skip to content

Commit f0b5fea

Browse files
author
Kapil Borle
committed
Fix updating settings in invoke-formatter
1 parent 87aac09 commit f0b5fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/Formatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static string Format<TCmdlet>(
3939
ruleSettings.Add(rule, new Hashtable(inputSettings.RuleArguments[rule]));
4040
currentSettingsHashtable.Add("Rules", ruleSettings);
4141
var currentSettings = new Settings(currentSettingsHashtable);
42-
ScriptAnalyzer.Instance.UpdateSettings(inputSettings);
42+
ScriptAnalyzer.Instance.UpdateSettings(currentSettings);
4343
ScriptAnalyzer.Instance.Initialize(cmdlet, null, null, null, null, true, false);
4444

4545
var corrections = new List<CorrectionExtent>();

0 commit comments

Comments
 (0)