New rule S6962 for C#: You should pool HTTP connections with HttpClientFactory #9122
Azure Pipelines / Sonar.Net
failed
Apr 17, 2024 in 21m 5s
Build #20240417.58 had test failures
Details
- Failed: 1 (0.01%)
- Passed: 16,864 (99.99%)
- Other: 1 (0.01%)
- Total: 16,866
Annotations
Check failure on line 950 in Build log
azure-pipelines / Sonar.Net
Build log #L950
PowerShell exited with code '1'.
Check failure on line 1 in SonarAnalyzer.Test.Rules.UseHttpClientFactoryTest.UseHttpClientFactory_CS
azure-pipelines / Sonar.Net
SonarAnalyzer.Test.Rules.UseHttpClientFactoryTest.UseHttpClientFactory_CS
There are differences for CSharp11 UseHttpClientFactory.Concurrent.cs:
Line 14: Missing expected issue
Line 16: Missing expected issue
Line 21: Unexpected issue 'FIXME' Rule S6962
Line 42: Missing expected issue
Line 43: Missing expected issue
Line 46: Unexpected issue 'FIXME' Rule S6962
Line 50: Unexpected issue 'FIXME' Rule S6962
Line 54: Unexpected issue 'FIXME' Rule S6962
Line 58: Unexpected issue 'FIXME' Rule S6962
Line 61: Unexpected issue 'FIXME' Rule S6962
Line 62: Unexpected issue 'FIXME' Rule S6962
There are differences for CSharp11 UseHttpClientFactory.cs:
Line 14: Missing expected issue
Line 16: Missing expected issue
Line 21: Unexpected issue 'FIXME' Rule S6962
Line 42: Missing expected issue
Line 43: Missing expected issue
Line 46: Unexpected issue 'FIXME' Rule S6962
Line 50: Unexpected issue 'FIXME' Rule S6962
Line 54: Unexpected issue 'FIXME' Rule S6962
Line 58: Unexpected issue 'FIXME' Rule S6962
Line 61: Unexpected issue 'FIXME' Rule S6962
Line 62: Unexpected issue 'FIXME' Rule S6962
Raw output
UseHttpClientFactory.cs
at Primary.Missing() in C:\sonar-ci\_work\1\s\analyzers\tests\SonarAnalyzer.Test\TestCases\UseHttpClientFactory.cs:line 14
at Primary.Missing() in C:\sonar-ci\_work\1\s\analyzers\tests\SonarAnalyzer.Test\TestCases\UseHttpClientFactory.cs:line 16
at Primary.Unexpected() in C:\sonar-ci\_work\1\s\analyzers\tests\SonarAnalyzer.Test\TestCases\UseHttpClientFactory.cs:line 21
at Primary.Missing() in C:\sonar-ci\_work\1\s\analyzers\tests\SonarAnalyzer.Test\TestCases\UseHttpClientFactory.cs:line 42
at Primary.Missing() in C:\sonar-ci\_work\1\s\analyzers\tests\SonarAnalyzer.Test\TestCases\UseHttpClientFactory.cs:line 43
at Primary.Unexpected() in C:\sonar-ci\_work\1\s\analyzers\tests\SonarAnalyzer.Test\TestCases\UseHttpClientFactory.cs:line 46
at Primary.Unexpected() in C:\sonar-ci\_work\1\s\analyzers\tests\SonarAnalyzer.Test\TestCases\UseHttpClientFactory.cs:line 50
at Primary.Unexpected() in C:\sonar-ci\_work\1\s\analyzers\tests\SonarAnalyzer.Test\TestCases\UseHttpClientFactory.cs:line 54
at Primary.Unexpected() in C:\sonar-ci\_work\1\s\analyzers\tests\SonarAnalyzer.Test\TestCases\UseHttpClientFactory.cs:line 58
at Primary.Unexpected() in C:\sonar-ci\_work\1\s\analyzers\tests\SonarAnalyzer.Test\TestCases\UseHttpClientFactory.cs:line 61
at Primary.Unexpected() in C:\sonar-ci\_work\1\s\analyzers\tests\SonarAnalyzer.Test\TestCases\UseHttpClientFactory.cs:line 62
---
Loading