Skip to content

Commit

Permalink
Fixing issue in the default configuration (#2230)
Browse files Browse the repository at this point in the history
* Fixing issue in the default configuration

* updating style
  • Loading branch information
eddynaka committed Jan 9, 2021
1 parent 8cb8abc commit 853787c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Sarif.Driver/Sdk/AnalyzeCommandBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,9 @@ private SupportedPlatform GetCurrentRunningOS()
// So disable it, but don't complain that the rule was explicitly disabled.
disabledSkimmers.Add(skimmer.Id);
}
else if (skimmer.DefaultConfiguration.Level != failureLevel)
else if (skimmer.DefaultConfiguration.Level != failureLevel
&& ruleEnabled != RuleEnabledState.Default
&& ruleEnabled != RuleEnabledState.Disabled)
{
skimmer.DefaultConfiguration.Level = failureLevel;
}
Expand Down

0 comments on commit 853787c

Please sign in to comment.