Skip to content

Sonar

Sonar #1152

Triggered via schedule December 8, 2025 16:36
Status Success
Total duration 1m 25s
Artifacts

sonar.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Utils/EncryptionUtilsTest.cs#L92
Replace the 'ExpectedException' attribute with a throw assertion or a try/catch block. (https://rules.sonarsource.com/csharp/RSPEC-3431)
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Utils/JsonUtilsTest.cs#L157
Make sure these 2 arguments are in the correct order: expected value, actual value. (https://rules.sonarsource.com/csharp/RSPEC-3415)
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Utils/JsonUtilsTest.cs#L156
Make sure these 2 arguments are in the correct order: expected value, actual value. (https://rules.sonarsource.com/csharp/RSPEC-3415)
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Utils/JsonUtilsTest.cs#L148
Make sure these 2 arguments are in the correct order: expected value, actual value. (https://rules.sonarsource.com/csharp/RSPEC-3415)
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Utils/JsonUtilsTest.cs#L147
Make sure these 2 arguments are in the correct order: expected value, actual value. (https://rules.sonarsource.com/csharp/RSPEC-3415)
build: Mastercard.Developer.ClientEncryption.Tests/Tests/Test/TestUtils.cs#L19
'X509Certificate2.X509Certificate2()' is obsolete: 'X509Certificate and X509Certificate2 are immutable. Use the appropriate constructor to create a new certificate.' (https://aka.ms/dotnet-warnings/SYSLIB0026)
build: Mastercard.Developer.ClientEncryption.RestSharpV2/Interceptors/RestSharpEncryptionInterceptor.cs#L135
Loops should be simplified using the "Where" LINQ method (https://rules.sonarsource.com/csharp/RSPEC-3267)
build: Mastercard.Developer.ClientEncryption.RestSharpV2/Interceptors/RestSharpEncryptionInterceptor.cs#L42
'RestRequest.OnBeforeDeserialization' is obsolete: 'Use Interceptors instead'
build: Mastercard.Developer.ClientEncryption.Core/Encryption/EncryptionConfigBuilder.cs#L36
Loops should be simplified using the "Where" LINQ method (https://rules.sonarsource.com/csharp/RSPEC-3267)
build: Mastercard.Developer.ClientEncryption.Core/Encryption/EncryptionConfigBuilder.cs#L28
Loops should be simplified using the "Where" LINQ method (https://rules.sonarsource.com/csharp/RSPEC-3267)