Enable MA0136 (protects against accidental CRLFs)

This commit is contained in:
YoshiRulz 2024-07-04 07:23:24 +10:00
parent 1c302e56db
commit da7331632d
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 3 additions and 1 deletions

View File

@ -320,6 +320,8 @@ dotnet_diagnostic.MA0108.severity = error
dotnet_diagnostic.MA0109.severity = silent
# Use the Regex source generator
dotnet_diagnostic.MA0110.severity = error
# Raw String contains an implicit end of line character (if you compile on Windows you may get CRLFs in string literals)
dotnet_diagnostic.MA0136.severity = warning
# Both if and else branch have identical code
dotnet_diagnostic.MA0140.severity = warning

View File

@ -5,7 +5,7 @@
<Import Project="../../Common.props" />
<PropertyGroup>
<EnableMSTestRunner>true</EnableMSTestRunner>
<NoWarn>$(NoWarn);IDE0065;SA1200</NoWarn> <!-- IDE0065 and SA1200 want imports before a namespace statement -->
<NoWarn>$(NoWarn);MA0136;IDE0065;SA1200</NoWarn> <!-- MA0136 is the CRLF in "raw strings" warning; IDE0065 and SA1200 want imports before a namespace statement -->
<OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>