Skip to content

Commit

Permalink
Merge pull request #57 from max-ieremenko/feature/stylecop.json
Browse files Browse the repository at this point in the history
add stylecop.json
  • Loading branch information
max-ieremenko authored Nov 2, 2024
2 parents ceac8d0 + edb356d commit 592cbaf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<PlatformTarget>AnyCPU</PlatformTarget>
<WarningsAsErrors />
<CodeAnalysisRuleSet>..\StyleCope.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)StyleCope.ruleset</CodeAnalysisRuleSet>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\SqlDatabase.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)SqlDatabase.snk</AssemblyOriginatorKeyFile>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down Expand Up @@ -39,6 +39,7 @@

<ItemGroup>
<PackageReference Include="StyleCop.Analyzers.Unstable" PrivateAssets="All" />
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" Visible="false" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 8 additions & 0 deletions Sources/stylecop.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
//"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json"
"settings": {
"orderingRules": {
"systemUsingDirectivesFirst": true
}
}
}

0 comments on commit 592cbaf

Please sign in to comment.