Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed Mar 16, 2023
1 parent 92d3965 commit 9289fca
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -83,10 +83,10 @@ public SonarLintXmlReader(SourceText sonarLintXml)
&& !IsExcluded(globalExclusions, filePath);

private static bool IsIncluded(string[] inclusions, string filePath) =>
inclusions is { Length: 0 } || inclusions.Any(x => WildcardPatternMatcher.IsMatch(x, filePath));
inclusions is { Length: 0 } || inclusions.Any(x => WildcardPatternMatcher.IsMatch(x, filePath, true));

private static bool IsExcluded(string[] exclusions, string filePath) =>
exclusions.Any(x => WildcardPatternMatcher.IsMatch(x, filePath));
exclusions.Any(x => WildcardPatternMatcher.IsMatch(x, filePath, false));

private static SonarLintXml ParseContent(SourceText sonarLintXml)
{
Expand Down

0 comments on commit 9289fca

Please sign in to comment.