Skip to content

Commit 1638d10

Browse files
committed
Remove dev-dependency on CSharpGuidelinesAnalyzer
1 parent 329b10b commit 1638d10

54 files changed

Lines changed: 1 addition & 147 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Please follow these steps to have your contribution considered by the maintainer
5656
- Follow all instructions in the template. Don't forget to add tests and update documentation.
5757
- After you submit your pull request, verify that all status checks are passing. In release builds, all compiler warnings are treated as errors, so you should address them before push.
5858

59-
We use [CSharpGuidelines](https://csharpcodingguidelines.com/) as our coding standard. Coding style is validated during PR build, where we inject an extra settings layer that promotes various IDE suggestions to warning level. This ensures a high-quality codebase without interfering too much while editing code.
59+
Coding style is validated during PR build, where we inject an extra settings layer that promotes various IDE suggestions to warning level. This ensures a high-quality codebase without interfering too much while editing code.
6060
You can run the following [PowerShell scripts](https://github.com/PowerShell/PowerShell/releases) locally:
6161
- `pwsh ./inspectcode.ps1`: Scans the code for style violations and opens the result in your web browser.
6262
- `pwsh ./cleanupcode.ps1 [branch-name-or-commit-hash]`: Reformats the codebase to match with our configured style, optionally only changed files since the specified branch (usually master).

CSharpGuidelinesAnalyzer.config

Lines changed: 0 additions & 5 deletions
This file was deleted.

CodingGuidelines.ruleset

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RuleSet Name="Coding Guidelines" Description=" " ToolsVersion="17.0">
3-
<Rules AnalyzerId="CSharpGuidelinesAnalyzer" RuleNamespace="CSharpGuidelinesAnalyzer">
4-
<Rule Id="AV1008" Action="Warning" />
5-
<Rule Id="AV1135" Action="None" />
6-
<Rule Id="AV1500" Action="None" />
7-
<Rule Id="AV1505" Action="Warning" />
8-
<Rule Id="AV1506" Action="Warning" />
9-
<Rule Id="AV1507" Action="Warning" />
10-
<Rule Id="AV1536" Action="None" />
11-
<Rule Id="AV1537" Action="None" />
12-
<Rule Id="AV1551" Action="None" />
13-
<Rule Id="AV1564" Action="None" />
14-
<Rule Id="AV1568" Action="Warning" />
15-
<Rule Id="AV1580" Action="None" />
16-
<Rule Id="AV1704" Action="None" />
17-
<Rule Id="AV1710" Action="None" />
18-
<Rule Id="AV1711" Action="None" />
19-
<Rule Id="AV1738" Action="Warning" />
20-
<Rule Id="AV1739" Action="Warning" />
21-
<Rule Id="AV1745" Action="Warning" />
22-
<Rule Id="AV2220" Action="Warning" />
23-
<Rule Id="AV2230" Action="Info" />
24-
<Rule Id="AV2305" Action="None" />
25-
<Rule Id="AV2318" Action="Warning" />
26-
</Rules>
273
<Rules AnalyzerId="Microsoft.CodeAnalysis.NetAnalyzers" RuleNamespace="Microsoft.CodeAnalysis.NetAnalyzers">
284
<Rule Id="CA1027" Action="Warning" />
295
<Rule Id="CA1033" Action="Warning" />

Directory.Build.props

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,5 @@
6464

6565
<ItemGroup>
6666
<PackageReference Include="JetBrains.Annotations" Version="2025.2.*" PrivateAssets="All" />
67-
<PackageReference Include="CSharpGuidelinesAnalyzer" Version="3.8.*" PrivateAssets="All" />
68-
<AdditionalFiles Include="$(MSBuildThisFileDirectory)CSharpGuidelinesAnalyzer.config" Visible="False" />
6967
</ItemGroup>
7068
</Project>

Directory.Build.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<!-- Workaround for compiler regression at https://github.com/dotnet/roslyn/issues/80756 -->
99
<Target Name="DisableSlowAnalyzers" Condition="'$(Configuration)' == 'Debug'" BeforeTargets="CoreCompile">
1010
<ItemGroup>
11-
<Analyzer Remove="@(Analyzer)" Condition="'%(Filename)' == 'CSharpGuidelinesAnalyzer'" />
1211
<Analyzer Remove="@(Analyzer)" Condition="'%(Filename)' == 'Microsoft.CodeAnalysis.CSharp.CodeStyle'" />
1312
<Analyzer Remove="@(Analyzer)" Condition="'%(Filename)' == 'Microsoft.CodeAnalysis.NetAnalyzers'" />
1413
<Analyzer Remove="@(Analyzer)" Condition="'%(Filename)' == 'Microsoft.CodeAnalysis.CSharp.NetAnalyzers'" />

JsonApiDotNetCore.slnx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<File Path=".github/workflows/build.yml" />
1313
<File Path=".gitignore" />
1414
<File Path="CodingGuidelines.ruleset" />
15-
<File Path="CSharpGuidelinesAnalyzer.config" />
1615
<File Path="Directory.Build.props" />
1716
<File Path="package-versions.props" />
1817
<File Path="tests.runsettings" />

src/Examples/JsonApiDotNetCoreExample/AppLog.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#pragma warning disable AV1008 // Class should not be static
2-
31
namespace JsonApiDotNetCoreExample;
42

53
internal static partial class AppLog

src/JsonApiDotNetCore.Annotations/ArgumentGuard.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using JetBrains.Annotations;
33
using SysNotNull = System.Diagnostics.CodeAnalysis.NotNullAttribute;
44

5-
#pragma warning disable AV1008 // Class should not be static
65
#pragma warning disable format
76

87
namespace JsonApiDotNetCore;

src/JsonApiDotNetCore.Annotations/Resources/RuntimeTypeConverter.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
using System.Globalization;
33
using JetBrains.Annotations;
44

5-
#pragma warning disable AV1008 // Class should not be static
6-
75
namespace JsonApiDotNetCore.Resources;
86

97
/// <summary>

src/JsonApiDotNetCore.OpenApi.Client.NSwag/NotifyPropertySet.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
// Adapted from https://github.com/PrismLibrary/Prism/blob/9.0.537/src/Prism.Core/Mvvm/BindableBase.cs for JsonApiDotNetCore.
66

7-
#pragma warning disable AV1553 // Do not use optional parameters with default value null for strings, collections or tasks
8-
#pragma warning disable AV1554 // Method contains optional parameter in type hierarchy
9-
#pragma warning disable AV1562 // Do not declare a parameter as ref or out
10-
117
namespace JsonApiDotNetCore.OpenApi.Client.NSwag;
128

139
/// <summary>

0 commit comments

Comments
 (0)