Enforce code style in build (#13957)

* Enable EnforceCodeStyleInBuild

* Disable rules breaking build
This commit is contained in:
xtqqczze
2020-11-01 12:33:18 +05:00
committed by GitHub
parent fbca9141ec
commit ea4cf93749
3 changed files with 11 additions and 3 deletions
+3 -3
View File
@@ -832,7 +832,7 @@ dotnet_diagnostic.IDE0034.severity = silent
dotnet_diagnostic.IDE0035.severity = silent
# OrderModifiers
dotnet_diagnostic.IDE0036.severity = warning
dotnet_diagnostic.IDE0036.severity = suggestion
# UseInferredMemberName
dotnet_diagnostic.IDE0037.severity = silent
@@ -868,7 +868,7 @@ dotnet_diagnostic.IDE0046.severity = silent
dotnet_diagnostic.IDE0047.severity = silent
# AddRequiredParentheses
dotnet_diagnostic.IDE0048.severity = warning
dotnet_diagnostic.IDE0048.severity = suggestion
# PreferBuiltInOrFrameworkType
dotnet_diagnostic.IDE0049.severity = silent
@@ -943,7 +943,7 @@ dotnet_diagnostic.IDE0071.severity = silent
dotnet_diagnostic.IDE0072.severity = silent
# FileHeaderMismatch
dotnet_diagnostic.IDE0073.severity = warning
dotnet_diagnostic.IDE0073.severity = suggestion
# UseCoalesceCompoundAssignment
dotnet_diagnostic.IDE0074.severity = silent
+4
View File
@@ -157,4 +157,8 @@
<PropertyGroup>
<Features>strict</Features>
</PropertyGroup>
<PropertyGroup>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
</Project>
+4
View File
@@ -16,6 +16,10 @@
<Features>strict</Features>
</PropertyGroup>
<PropertyGroup>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
<PropertyGroup Condition=" '$(IsWindows)' != 'true' ">
<DefineConstants>$(DefineConstants);UNIX</DefineConstants>
</PropertyGroup>