Skip to content

Commit

Permalink
fix and suppress warnings due to upgrade of Roslyn
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingzhe Huang (from Dev Box) committed Sep 7, 2023
1 parent 988cef0 commit eafaee9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<BuildOutputTargetFolder>analyzers/dotnet/cs/</BuildOutputTargetFolder>
<VersionPrefix>0.1.1</VersionPrefix>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
</PropertyGroup>

<ItemGroup>
Expand Down
19 changes: 19 additions & 0 deletions src/dotnet/Azure.ClientSdk.Analyzers/shipping.globalconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# The warnings below are found after upgrading to Roslyn 4.7.0
# It should be able to fix them all. Suppressing them is just a temporary work-around.

is_global = true

# CS0618: 'IOperation.Children' is obsolete: 'This API has performance penalties, please use ChildOperations instead.
dotnet_diagnostic.CS0618.severity = suggestion

# RS1031: The diagnostic title should not contain a period, nor any line return character, nor any leading or trailing whitespaces
dotnet_diagnostic.RS1031.severity = suggestion

# RS1032: The diagnostic message should not contain any line return character nor any leading or trailing whitespaces and should either be a single sentence without a trailing period or a multi-sentences with a trailing period
dotnet_diagnostic.RS1032.severity = suggestion

# RS2008: Enable analyzer release tracking for the analyzer project containing rule 'XXX'
dotnet_diagnostic.RS2008.severity = suggestion

# RS1024: Use 'SymbolEqualityComparer' when comparing symbols
dotnet_diagnostic.RS1024.severity = suggestion

0 comments on commit eafaee9

Please sign in to comment.