Skip to content

Commit e38a6d1

Browse files
committed
Added StyleCop.json to get better control of style rules
1 parent 8f0b41a commit e38a6d1

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ dotnet_diagnostic.SA1000.severity = none # BUGGY with C#9 code
479479
dotnet_diagnostic.SA1005.severity = none # SA1005: Single line comments should begin with single space
480480
dotnet_diagnostic.SA1011.severity = none # BUGGY with C#9 code
481481

482-
dotnet_diagnostic.SA1027.severity = none # SA1027: Use Tabs Correctly
483482
dotnet_diagnostic.SA1107.severity = suggestion # SA1107: Code should not contain multiple statements on one line
484483
dotnet_diagnostic.SA1127.severity = suggestion # SA1127: Generic type constraints should be on their own line
485484
dotnet_diagnostic.SA1128.severity = suggestion # SA1128: Put constructor initializers on their own line

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<PackageReference Include="Asyncify" Version="0.9.7" PrivateAssets="All" />
4747
<PackageReference Include="Meziantou.Analyzer" Version="1.0.650" PrivateAssets="All" />
4848
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" />
49+
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\stylecop.json" Visible="false" />
4950
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.20.0.28934" PrivateAssets="All" />
5051
</ItemGroup>
5152

stylecop.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
3+
"settings": {
4+
"indentation": {
5+
"useTabs": true
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)