Skip to content

Commit

Permalink
Fix globbing (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed May 8, 2024
1 parent 5aa6521 commit bc61073
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix analyzer [RCS1246](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1246) ([PR](https://github.com/dotnet/roslynator/pull/1460))
- Fix analyzer [RCS1085](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1085) ([PR](https://github.com/dotnet/roslynator/pull/1461))
- Fix analyzer [RCS1077](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1077) ([PR](https://github.com/dotnet/roslynator/pull/1463))
- [CLI] Fix `roslynator analyze --include/--exclude` ([PR](https://github.com/dotnet/roslynator/pull/1459))

## [4.12.2] - 2024-04-23

Expand Down
8 changes: 7 additions & 1 deletion src/Workspaces.Core/Diagnostics/CodeAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,13 @@ private IEnumerable<Diagnostic> FilterDiagnostics(IEnumerable<Diagnostic> diagno
else if (Options.ReportNotConfigurable
|| !diagnostic.Descriptor.CustomTags.Contains(WellKnownDiagnosticTags.NotConfigurable))
{
yield return diagnostic;
SyntaxTree? tree = diagnostic.Location.SourceTree;

if (tree is null
|| Options.FileSystemFilter?.IsMatch(tree.FilePath) != false)
{
yield return diagnostic;
}
}
}
}
Expand Down

0 comments on commit bc61073

Please sign in to comment.