Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New rule S6962 for C#: You should pool HTTP connections with HttpClientFactory #9122

Closed
wants to merge 2 commits into from

draft

6c7b000
Select commit
Loading
Failed to load commit list.
Closed

New rule S6962 for C#: You should pool HTTP connections with HttpClientFactory #9122

draft
6c7b000
Select commit
Loading
Failed to load commit list.
Azure Pipelines / Sonar.Net failed Apr 17, 2024 in 21m 5s

Build #20240417.58 had test failures

Details

Tests

  • 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

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Sonar.Net

Build log #L950

PowerShell exited with code '1'.

Check failure on line 1 in SonarAnalyzer.Test.Rules.UseHttpClientFactoryTest.UseHttpClientFactory_CS

See this annotation in the file changed.

@azure-pipelines 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
---