mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Enforce code style in build (#13957)
* Enable EnforceCodeStyleInBuild * Disable rules breaking build
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
@@ -157,4 +157,8 @@
|
||||
<PropertyGroup>
|
||||
<Features>strict</Features>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
<Features>strict</Features>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(IsWindows)' != 'true' ">
|
||||
<DefineConstants>$(DefineConstants);UNIX</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user