Skip to content

Commit

Permalink
Replace StyleCop wit CodeAnalysis
Browse files Browse the repository at this point in the history
  • Loading branch information
eXpl0it3r committed Nov 21, 2024
1 parent e977e50 commit 2766aac
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 51 deletions.
50 changes: 50 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = false
max_line_length = 120
tab_width = 4
trim_trailing_whitespace = false

[*.cs]
dotnet_diagnostic.SA0001.severity = none
dotnet_diagnostic.SA1000.severity = none
dotnet_diagnostic.SA1028.severity = none
dotnet_diagnostic.SA1101.severity = none
dotnet_diagnostic.SA1114.severity = none
dotnet_diagnostic.SA1115.severity = none
dotnet_diagnostic.SA1116.severity = none
dotnet_diagnostic.SA1118.severity = none
dotnet_diagnostic.SA1124.severity = none
dotnet_diagnostic.SA1200.severity = none
dotnet_diagnostic.SA1204.severity = none
dotnet_diagnostic.SA1309.severity = none
dotnet_diagnostic.SA1404.severity = none
dotnet_diagnostic.SA1408.severity = none
dotnet_diagnostic.SA1413.severity = none
dotnet_diagnostic.SA1503.severity = error
dotnet_diagnostic.SA1516.severity = none
dotnet_diagnostic.SA1519.severity = error
dotnet_diagnostic.SA1600.severity = none
dotnet_diagnostic.SA1601.severity = none
dotnet_diagnostic.SA1602.severity = none
dotnet_diagnostic.SA1604.severity = none
dotnet_diagnostic.SA1605.severity = none
dotnet_diagnostic.SA1608.severity = none
dotnet_diagnostic.SA1611.severity = none
dotnet_diagnostic.SA1615.severity = none
dotnet_diagnostic.SA1618.severity = none
dotnet_diagnostic.SA1623.severity = none
dotnet_diagnostic.SA1629.severity = none
dotnet_diagnostic.SA1633.severity = none
dotnet_diagnostic.SA1634.severity = none
dotnet_diagnostic.SA1635.severity = none
dotnet_diagnostic.SA1636.severity = none
dotnet_diagnostic.SA1637.severity = none
dotnet_diagnostic.SA1638.severity = none
dotnet_diagnostic.SA1640.severity = none
dotnet_diagnostic.SA1641.severity = none
dotnet_diagnostic.SA1652.severity = none
dotnet_diagnostic.SX1101.severity = warning
11 changes: 5 additions & 6 deletions Clockify.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<StartupObject>Clockify.Program</StartupObject>
<CodeAnalysisRuleSet>StyleCop.ruleset</CodeAnalysisRuleSet>
<EnableNETAnalyzers>false</EnableNETAnalyzers>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<AssemblyVersion>1.8</AssemblyVersion>
Expand Down Expand Up @@ -37,15 +36,15 @@
<ItemGroup>
<PackageReference Include="Clockify.Net" Version="2.3.0" />
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NLog" Version="5.3.4" />
<PackageReference Include="runtime.osx.10.10-x64.CoreCompat.System.Drawing" Version="6.0.5.128" />
<PackageReference Include="streamdeck-client-csharp" Version="4.3.0" />
<PackageReference Include="StreamDeck-Tools" Version="6.2.0" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
<ItemGroup>
<None Update="Images\categoryIcon%402x.png">
Expand Down
2 changes: 1 addition & 1 deletion Clockify/PluginSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class PluginSettings

[JsonProperty(PropertyName = "clientName")]
public string ClientName { get; set; } = string.Empty;

[JsonProperty(PropertyName = "titleFormat")]
public string TitleFormat { get; set; } = string.Empty;

Expand Down
44 changes: 0 additions & 44 deletions StyleCop.ruleset

This file was deleted.

0 comments on commit 2766aac

Please sign in to comment.