Skip to content

Update labeler.yml #3231

Update labeler.yml

Update labeler.yml #3231

Triggered via pull request December 7, 2023 12:02
Status Failure
Total duration 1m 48s
Artifacts

sonarcloud.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 10 warnings
sonarcloud: GetIntoTeachingApi/Adapters/NotificationClientAdapter.cs#L40
Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1854)
sonarcloud: GetIntoTeachingApi/Controllers/GetIntoTeaching/TeachingEventsController.cs#L84
The behavior of 'int?.ToString()' could vary based on the current user's locale settings. Provide a value for the 'IFormatProvider' argument. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
sonarcloud: GetIntoTeachingApi/Controllers/GetIntoTeaching/TeachingEventsController.cs#L89
The behavior of 'int?.ToString()' could vary based on the current user's locale settings. Provide a value for the 'IFormatProvider' argument. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
sonarcloud: GetIntoTeachingApi/Adapters/NotificationClientAdapter.cs#L40
Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1854)
sonarcloud: GetIntoTeachingApi/Controllers/GetIntoTeaching/TeachingEventsController.cs#L84
The behavior of 'int?.ToString()' could vary based on the current user's locale settings. Provide a value for the 'IFormatProvider' argument. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
sonarcloud: GetIntoTeachingApi/Controllers/GetIntoTeaching/TeachingEventsController.cs#L89
The behavior of 'int?.ToString()' could vary based on the current user's locale settings. Provide a value for the 'IFormatProvider' argument. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
sonarcloud
Process completed with exit code 1.
sonarcloud: GetIntoTeachingApi/Jobs/LocationSyncJob.cs#L24
Refactor your code not to use hardcoded absolute paths or URIs. (https://rules.sonarsource.com/csharp/RSPEC-1075)
sonarcloud: GetIntoTeachingApi/Services/CrmService.cs#L27
Remove this unread private field '_env' or refactor the code to use its value. (https://rules.sonarsource.com/csharp/RSPEC-4487)
sonarcloud: GetIntoTeachingApi/Services/RedisService.cs#L14
Remove the field '_options' and declare it as a local variable in the relevant methods. (https://rules.sonarsource.com/csharp/RSPEC-1450)
sonarcloud: GetIntoTeachingApi/Services/Store.cs#L26
Remove this unread private field '_env' or refactor the code to use its value. (https://rules.sonarsource.com/csharp/RSPEC-4487)
sonarcloud: GetIntoTeachingApi/Models/Location.cs#L24
Pass a timeout to limit the execution time. (https://rules.sonarsource.com/csharp/RSPEC-6444)
sonarcloud: GetIntoTeachingApi/Models/Location.cs#L22
Pass a timeout to limit the execution time. (https://rules.sonarsource.com/csharp/RSPEC-6444)
sonarcloud: GetIntoTeachingApi/Auth/ApiClientSchemaOptions.cs#L5
Remove this empty class, write its code or make it an "interface". (https://rules.sonarsource.com/csharp/RSPEC-2094)
sonarcloud: GetIntoTeachingApi/AppStart/Startup.cs#L99
Make sure this debug feature is deactivated before delivering the code in production. (https://rules.sonarsource.com/csharp/RSPEC-4507)
sonarcloud: GetIntoTeachingApi/Utils/ValidationResultExtensions.cs#L23
Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)
sonarcloud: GetIntoTeachingApi/Utils/ValidationResultExtensions.cs#L19
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last" (https://rules.sonarsource.com/csharp/RSPEC-6608)