From e8860839f2f25b1468d21c159dc0be4b5827b1e6 Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Wed, 8 Nov 2023 22:34:40 +0100 Subject: [PATCH] Fix order of parameters (#1238) --- ChangeLog.md | 1 + src/Workspaces.Core/Extensions/Extensions.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 27943f6dea..ee9cabbf62 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix [RCS1234](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1234) ([PR](https://github.com/dotnet/roslynator/pull/1233)) - Fix refactoring [Inline method](https://josefpihrt.github.io/docs/roslynator/refactorings/RR0062) ([PR](https://github.com/dotnet/roslynator/pull/1234)) +- [CLI] Fix globbing ([PR](https://github.com/dotnet/roslynator/pull/1238)) ## [4.6.1] - 2023-10-23 diff --git a/src/Workspaces.Core/Extensions/Extensions.cs b/src/Workspaces.Core/Extensions/Extensions.cs index 6cb8d4dbd7..eb6a04d32b 100644 --- a/src/Workspaces.Core/Extensions/Extensions.cs +++ b/src/Workspaces.Core/Extensions/Extensions.cs @@ -27,7 +27,7 @@ public static bool IsMatch(this Matcher matcher, ISymbol symbol, string? rootDir if (tree is not null) { PatternMatchingResult result = (rootDirectoryPath is not null) - ? matcher.Match(tree.FilePath, rootDirectoryPath) + ? matcher.Match(rootDirectoryPath, tree.FilePath) : matcher.Match(tree.FilePath); if (!result.HasMatches)