I'm trying to use 'JetBrains.ReSharper.GlobalTools' on my CI server to ensure that the commits are of a high standard.
One of the things I would like to enforce is the order of the modifiers.
For that, I do have the following section inside my `.editorconfig` file.
When opening the Solution in Rider, the `.editorconfig` is respected, an no error is flagged.
# Section: Configuration for 'JetBrains.ReSharper.GlobalTools' - Syntax style (Modifiers).
csharp_default_private_modifier = explicit
csharp_default_internal_modifier = explicit
csharp_modifiers_order = public private protected internal static extern new virtual abstract sealed override readonly unsafe volatile async
Rider does respect this (as no issues are showed).
In order to verify that it's working correctly, I changed the `.editorconfig` rule so that `static` needs to come before `public`.
An issue is raised (which means that the `.editoconfig` file is used correctly).
When using the 'JetBrains.ReSharper.GlobalTools' CLI interface, using the command:
dotnet jb inspectcode --build .\Restify.sln --format="Xml" --output="InspectCode.Results.xml"
The resulting XML contains the following:
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated by JetBrains Inspect Code 2022.1.2 -->
<IssueType Id="ArrangeModifiersOrder" Category="Syntax Style" CategoryId="CodeStyleIssues" Description="Adjust modifiers declaration order" Severity="WARNING" WikiUrl="https://www.jetbrains.com/resharperplatform/help?Keyword=ArrangeModifiersOrder" />
<Issue TypeId="ArrangeModifiersOrder" File="Modules\Restify.Modules\Extensions\WebApplicationBuilder.Middleware.Extensions.cs" Offset="1941-1954" Line="33" Message="Inconsistent modifiers declaration order" />
Is there any reason why the CLI command keeps producing this issue?
Update: Even with a `DotSettings` file, this issue is still reported.