diff --git a/Polly.sln b/Polly.sln index 7bb28d106d3..92a68a4c3c7 100644 --- a/Polly.sln +++ b/Polly.sln @@ -60,6 +60,17 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Snippets", "src\Snippets\Sn EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Polly.AotTest", "test\Polly.AotTest\Polly.AotTest.csproj", "{84091007-CFA5-4852-AC41-0171DF039C4E}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "analyzers", "analyzers", "{4CB0EFF4-D867-4FA4-809D-C19F2F2A7C71}" + ProjectSection(SolutionItems) = preProject + eng\analyzers\BannedSymbols.txt = eng\analyzers\BannedSymbols.txt + eng\analyzers\Benchmark.globalconfig = eng\analyzers\Benchmark.globalconfig + eng\analyzers\Library.globalconfig = eng\analyzers\Library.globalconfig + eng\analyzers\SonarLint.xml = eng\analyzers\SonarLint.xml + eng\analyzers\Stylecop.globalconfig = eng\analyzers\Stylecop.globalconfig + eng\analyzers\Stylecop.json = eng\analyzers\Stylecop.json + eng\analyzers\Test.globalconfig = eng\analyzers\Test.globalconfig + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -147,6 +158,7 @@ Global {D333B5CE-982D-4C11-BDAF-4217AA02306E} = {A6CC41B9-E0B9-44F8-916B-3E4A78DA3BFB} {D812B941-79B0-4E1E-BB70-4FAE345B5234} = {B7BF406B-B06F-4025-83E6-7219C53196A6} {84091007-CFA5-4852-AC41-0171DF039C4E} = {A6CC41B9-E0B9-44F8-916B-3E4A78DA3BFB} + {4CB0EFF4-D867-4FA4-809D-C19F2F2A7C71} = {04E3C7C5-31F7-4CD6-8BEC-C1032527D231} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {2E5D54CD-770A-4345-B585-1848FC2EA6F4} diff --git a/eng/analyzers/SonarLint.xml b/eng/analyzers/SonarLint.xml index 9386ae4545c..e033103b0ba 100644 --- a/eng/analyzers/SonarLint.xml +++ b/eng/analyzers/SonarLint.xml @@ -10,5 +10,14 @@ + + S107 + + + max + 12 + + + diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index 58e363a6f20..4ac2a74391d 100644 --- a/src/Polly/Polly.csproj +++ b/src/Polly/Polly.csproj @@ -8,7 +8,7 @@ 70 true $(NoWarn);S3872;SA1402;SA1414;S3215 - $(NoWarn);IDE1006;CA1062;S107;CA1068;S4039;CA1000;CA1063;CA1031;CA1051 + $(NoWarn);IDE1006;CA1062;CA1068;S4039;CA1000;CA1063;CA1031;CA1051 $(NoWarn);CA2211;S2223;CA1032;CA1815;CA1816;S4457;SA1615;CA1033 $(NoWarn);S4023;CA1010;S3442;CA1064;SA1649;SA1623;SA1118 $(NoWarn);S3971;CA1724;CA1716;SA1108;CA1710;S4049;S3246