refactor: replaced RequestUriMatcher with UriMatcher #191
Annotations
10 errors and 10 warnings
test/MockHttp.Tests/Extensions/RequestMatchingExtensionsTests.cs#L128
No overload for method 'RequestUri' takes 2 arguments
|
test/MockHttp.Tests/Extensions/RequestMatchingExtensionsTests.cs#L171
No overload for method 'RequestUri' takes 2 arguments
|
test/MockHttp.Tests/Extensions/RequestMatchingExtensionsTests.cs#L846
Argument 1: cannot convert from 'method group' to 'System.Action<MockHttp.RequestMatching, string, bool>'
|
test/MockHttp.Tests/Extensions/RequestMatchingExtensionsTests.cs#L128
No overload for method 'RequestUri' takes 2 arguments
|
test/MockHttp.Tests/Extensions/RequestMatchingExtensionsTests.cs#L171
No overload for method 'RequestUri' takes 2 arguments
|
test/MockHttp.Tests/Extensions/RequestMatchingExtensionsTests.cs#L846
Argument 1: cannot convert from 'method group' to 'System.Action<MockHttp.RequestMatching, string, bool>'
|
test/MockHttp.Tests/Extensions/RequestMatchingExtensionsTests.cs#L128
No overload for method 'RequestUri' takes 2 arguments
|
test/MockHttp.Tests/Extensions/RequestMatchingExtensionsTests.cs#L171
No overload for method 'RequestUri' takes 2 arguments
|
test/MockHttp.Tests/Extensions/RequestMatchingExtensionsTests.cs#L846
Argument 1: cannot convert from 'method group' to 'System.Action<MockHttp.RequestMatching, string, bool>'
|
test/MockHttp.Tests/Extensions/RequestMatchingExtensionsTests.cs#L128
No overload for method 'RequestUri' takes 2 arguments
|
src/MockHttp/Matchers/Patterns/RelativeOrAbsoluteUriPatternMatcher.cs#L7
Remove this unread private field '_originalUri' or refactor the code to use its value. (https://rules.sonarsource.com/csharp/RSPEC-4487)
|
src/MockHttp/Matchers/Patterns/UriPatternMatcher.cs#L3
Convert this 'abstract' class to an interface. (https://rules.sonarsource.com/csharp/RSPEC-1694)
|
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)
|
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)
|
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)
|
src/MockHttp/Matchers/Patterns/RegexPatternMatcher.cs#L15
Pass a timeout to limit the execution time. (https://rules.sonarsource.com/csharp/RSPEC-6444)
|
src/MockHttp/Matchers/Patterns/RelativeOrAbsoluteUriPatternMatcher.cs#L7
Remove this unread private field '_originalUri' or refactor the code to use its value. (https://rules.sonarsource.com/csharp/RSPEC-4487)
|
src/MockHttp/Matchers/Patterns/UriPatternMatcher.cs#L3
Convert this 'abstract' class to an interface. (https://rules.sonarsource.com/csharp/RSPEC-1694)
|
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)
|
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)
|
This job failed
Loading