Skip to content

Commit 718d4b8

Browse files
author
Quoc Truong
committed
Merge pull request #263 from PowerShell/DSCRulesCannotBeExcludedBug
Fix DSCClassRules not being applied when excluderule is used
2 parents 96d56c3 + 7699829 commit 718d4b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/Commands/InvokeScriptAnalyzerCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ private void AnalyzeFile(string filePath)
530530
}
531531
}
532532

533-
if ((includeRule == null || includeRegexMatch) && (excludeRule == null || excludeRegexMatch))
533+
if ((includeRule == null || includeRegexMatch) && (excludeRule == null || !excludeRegexMatch))
534534
{
535535
WriteVerbose(string.Format(CultureInfo.CurrentCulture, Strings.VerboseRunningMessage, dscResourceRule.GetName()));
536536

0 commit comments

Comments
 (0)