refactor: fix analyzer warnings (2) #2242
Annotations
4 errors and 11 warnings
Run sonarcloud analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Testing.Tests/Statistics/StatisticsTests.Helpers.cs(305,25): error CS0121: The call is ambiguous between the following methods or properties: 'Testably.Abstractions.Polyfills.StringExtensionMethods.IndexOf(string, char, System.StringComparison)' and 'Testably.Abstractions.Polyfills.StringExtensionMethods.IndexOf(string, char, System.StringComparison)' [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Testing.Tests/Testably.Abstractions.Testing.Tests.csproj::TargetFramework=net48]
|
Run sonarcloud analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Testing.Tests/Statistics/StatisticsTests.Helpers.cs(305,25): error CS0121: The call is ambiguous between the following methods or properties: 'Testably.Abstractions.Polyfills.StringExtensionMethods.IndexOf(string, char, System.StringComparison)' and 'Testably.Abstractions.Polyfills.StringExtensionMethods.IndexOf(string, char, System.StringComparison)' [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Testing.Tests/Testably.Abstractions.Testing.Tests.csproj::TargetFramework=net48]
|
Run sonarcloud analysis
Target "Compile" has thrown an exception
|
Run sonarcloud analysis
Process completed with exit code 255.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run sonarcloud analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/FileSystem/FileSystemWatcherMock.cs(513,52): warning S3011: Make sure that this accessibility bypass is safe here. (https://rules.sonarsource.com/csharp/RSPEC-3011) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=netstandard2.1]
|
Run sonarcloud analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/FileSystem/FileSystemWatcherMock.cs(601,52): warning S3011: Make sure that this accessibility bypass is safe here. (https://rules.sonarsource.com/csharp/RSPEC-3011) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=netstandard2.1]
|
Run sonarcloud analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/FileSystem/FileSystemWatcherMock.cs(605,55): warning S3011: Make sure that this accessibility bypass is safe here. (https://rules.sonarsource.com/csharp/RSPEC-3011) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=netstandard2.1]
|
Run sonarcloud analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Statistics/ParameterDescription.cs(66,6): warning S3060: Offload the code that's conditional on this type test to the appropriate subclass and remove the condition. (https://rules.sonarsource.com/csharp/RSPEC-3060) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=netstandard2.1]
|
Run sonarcloud analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Statistics/ParameterDescription.cs(80,10): warning S3060: Offload the code that's conditional on this type test to the appropriate subclass and remove the condition. (https://rules.sonarsource.com/csharp/RSPEC-3060) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=netstandard2.1]
|
Run sonarcloud analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Statistics/ParameterDescription.cs(89,6): warning S3060: Offload the code that's conditional on this type test to the appropriate subclass and remove the condition. (https://rules.sonarsource.com/csharp/RSPEC-3060) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=netstandard2.1]
|
Run sonarcloud analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Statistics/ParameterDescription.cs(98,6): warning S3060: Offload the code that's conditional on this type test to the appropriate subclass and remove the condition. (https://rules.sonarsource.com/csharp/RSPEC-3060) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=netstandard2.1]
|
Run sonarcloud analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Statistics/ParameterDescription.cs(106,6): warning S3060: Offload the code that's conditional on this type test to the appropriate subclass and remove the condition. (https://rules.sonarsource.com/csharp/RSPEC-3060) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=netstandard2.1]
|
Run sonarcloud analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Helpers/Execute.SimulatedPath.cs(716,20): warning S3776: Refactor this method to reduce its Cognitive Complexity from 41 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=netstandard2.1]
|
Run sonarcloud analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Polyfills/FileSystemName.cs(420,7): warning S125: Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=netstandard2.0]
|
Loading