From a1a41209f37cde53bf3878efe4252a9d6c69b601 Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Wed, 8 May 2024 19:23:33 +0200 Subject: [PATCH 1/3] update --- src/Workspaces.Core/Diagnostics/CodeAnalyzer.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Workspaces.Core/Diagnostics/CodeAnalyzer.cs b/src/Workspaces.Core/Diagnostics/CodeAnalyzer.cs index 88f9c9b329..e1d0af929f 100644 --- a/src/Workspaces.Core/Diagnostics/CodeAnalyzer.cs +++ b/src/Workspaces.Core/Diagnostics/CodeAnalyzer.cs @@ -224,7 +224,13 @@ private IEnumerable FilterDiagnostics(IEnumerable 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; + } } } } From d650e882bb37d05669e0b637c5a7557eb3efaad2 Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Wed, 8 May 2024 19:25:24 +0200 Subject: [PATCH 2/3] update --- ChangeLog.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index 0f8f0a1952..cbd4d947cd 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- [CLI] Fix globbing ([PR](https://github.com/dotnet/roslynator/pull/1459)) + ## [4.12.2] - 2024-04-23 ### Fixed From 26e1b4b59348c21647a3698282d4574354f63c1e Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Wed, 8 May 2024 22:19:22 +0200 Subject: [PATCH 3/3] update --- ChangeLog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 27fc996189..b0625d87b3 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -11,7 +11,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)) -- [CLI] Fix globbing ([PR](https://github.com/dotnet/roslynator/pull/1459)) +- [CLI] Fix `roslynator analyze --include/--exclude` ([PR](https://github.com/dotnet/roslynator/pull/1459)) ## [4.12.2] - 2024-04-23