Skip to content

refactor: add new Pattern type that replaces IPatternMatcher<> to simplify API. #197

refactor: add new Pattern type that replaces IPatternMatcher<> to simplify API.

refactor: add new Pattern type that replaces IPatternMatcher<> to simplify API. #197

Triggered via pull request September 8, 2024 20:10
@skwasjerskwasjer
opened #111
Status Success
Total duration 5m 33s
Artifacts

sonarcloud.yml

on: pull_request_target
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
analysis: src/MockHttp/Responses/IResponseBehavior.cs#L7
Rename type name ResponseHandlerDelegate so that it does not end in 'Delegate' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
analysis: src/MockHttp/Patterns/RegexPattern.cs#L33
Pass a timeout to limit the execution time. (https://rules.sonarsource.com/csharp/RSPEC-6444)
analysis: src/MockHttp/Responses/IResponseBehavior.cs#L22
In virtual/interface member IResponseBehavior.HandleAsync(MockHttpRequestContext, HttpResponseMessage, ResponseHandlerDelegate, CancellationToken), rename parameter next so that it no longer conflicts with the reserved language keyword 'Next'. Using a reserved keyword as the name of a parameter on a virtual/interface member makes it harder for consumers in other languages to override/implement the member. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
analysis: src/MockHttp/Http/HttpHeaderEqualityComparer.cs#L66
Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)
analysis: src/MockHttp/Responses/IResponseBehavior.cs#L7
Rename type name ResponseHandlerDelegate so that it does not end in 'Delegate' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
analysis: src/MockHttp/Patterns/RegexPattern.cs#L33
Pass a timeout to limit the execution time. (https://rules.sonarsource.com/csharp/RSPEC-6444)
analysis: src/MockHttp/Http/HttpHeaderEqualityComparer.cs#L66
Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)
analysis: src/MockHttp/Responses/IResponseBehavior.cs#L22
In virtual/interface member IResponseBehavior.HandleAsync(MockHttpRequestContext, HttpResponseMessage, ResponseHandlerDelegate, CancellationToken), rename parameter next so that it no longer conflicts with the reserved language keyword 'Next'. Using a reserved keyword as the name of a parameter on a virtual/interface member makes it harder for consumers in other languages to override/implement the member. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)
analysis: src/MockHttp/Responses/IResponseBehavior.cs#L7
Rename type name ResponseHandlerDelegate so that it does not end in 'Delegate' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711)
analysis: src/MockHttp/Http/HttpHeaderEqualityComparer.cs#L66
Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)