diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ede3fa3..c341f3c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,3 +25,11 @@ jobs: env: NUGET_SOURCE: ${{ secrets.NUGET_GSOFTDEV_FEED_URL }} NUGET_API_KEY: ${{ secrets.GSOFT_NUGET_API_KEY }} + + lint_config: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + - run: dotnet run --project=tools/ConfigurationFilesGenerator/ConfigurationFilesGenerator.csproj diff --git a/src/files/analyzers/Analyzer.Microsoft.CodeAnalysis.CSharp.CodeStyle.editorconfig b/src/files/analyzers/Analyzer.Microsoft.CodeAnalysis.CSharp.CodeStyle.editorconfig index 4c47ea4..dc6212d 100644 --- a/src/files/analyzers/Analyzer.Microsoft.CodeAnalysis.CSharp.CodeStyle.editorconfig +++ b/src/files/analyzers/Analyzer.Microsoft.CodeAnalysis.CSharp.CodeStyle.editorconfig @@ -305,12 +305,12 @@ dotnet_diagnostic.IDE0071.severity = warning # Enabled: True, Severity: silent dotnet_diagnostic.IDE0072.severity = silent -# IDE0073: The file header is missing or not located at the top of the file +# IDE0073: The file header does not match the required text # Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073 # Enabled: True, Severity: silent dotnet_diagnostic.IDE0073.severity = silent -# IDE0073: The file header does not match the required text +# IDE0073: The file header is missing or not located at the top of the file # Help link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073 # Enabled: True, Severity: silent dotnet_diagnostic.IDE0073.severity = silent @@ -550,7 +550,7 @@ dotnet_diagnostic.IDE2005.severity = warning # Enabled: True, Severity: silent dotnet_diagnostic.IDE2006.severity = warning -# RemoveUnnecessaryImportsFixable: +# RemoveUnnecessaryImportsFixable: # Enabled: True, Severity: silent dotnet_diagnostic.RemoveUnnecessaryImportsFixable.severity = silent diff --git a/tools/ConfigurationFilesGenerator/Program.cs b/tools/ConfigurationFilesGenerator/Program.cs index de05767..e213f04 100644 --- a/tools/ConfigurationFilesGenerator/Program.cs +++ b/tools/ConfigurationFilesGenerator/Program.cs @@ -67,7 +67,7 @@ await Parallel.ForEachAsync(packages, async (item, cancellationToken) => sb.AppendLine(); } - foreach (var rule in rules.OrderBy(rule => rule.Id)) + foreach (var rule in rules.OrderBy(rule => rule.Id).ThenBy(rule => rule.Title)) { var currentRuleConfiguration = currentConfiguration.Rules.FirstOrDefault(r => r.Id == rule.Id); var severity = currentRuleConfiguration != null ? currentRuleConfiguration.Severity : rule.DefaultEffectiveSeverity;