Skip to content

Upgrade .NET from 6.0 to 8.0 #7516

Upgrade .NET from 6.0 to 8.0

Upgrade .NET from 6.0 to 8.0 #7516

Triggered via pull request April 8, 2024 14:15
@imnasnainaecimnasnainaec
synchronize #3046
dotnet8
Status Failure
Total duration 1m 56s
Artifacts

backend.yml

on: pull_request
Matrix: test_build
upload_coverage
0s
upload_coverage
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 1 warning
docker_build
Process completed with exit code 1.
test_build (8.0.x): Backend/Startup.cs#L151
Possible null reference assignment.
test_build (8.0.x): Backend/Startup.cs#L152
Possible null reference assignment.
test_build (8.0.x): Backend/Helper/Language.cs#L46
Prefer comparing 'Length' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
test_build (8.0.x): Backend/Controllers/UserRoleController.cs#L111
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)
test_build (8.0.x): Backend/Services/LiftService.cs#L144
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)
test_build (8.0.x): Backend/Services/LiftService.cs#L36
Prefer comparing 'Length' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
test_build (8.0.x): Backend/Services/LiftService.cs#L162
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)
test_build (8.0.x): Backend/Services/LiftService.cs#L193
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)
test_build (8.0.x): Backend/Services/LiftService.cs#L217
Prefer comparing 'Length' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
test_build (8.0.x): Backend/Services/PasswordResetService.cs#L48
Prefer using 'string.Equals(string, StringComparison)' to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1862)
CodeQL_build: Backend/Startup.cs#L151
Possible null reference assignment.
CodeQL_build: Backend/Startup.cs#L152
Possible null reference assignment.
CodeQL_build: Backend/Controllers/UserRoleController.cs#L111
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)
CodeQL_build: Backend/Controllers/UserRoleController.cs#L235
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)
CodeQL_build: Backend/Helper/Language.cs#L46
Prefer comparing 'Length' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
CodeQL_build: Backend/Services/StatisticsService.cs#L35
Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
CodeQL_build: Backend/Services/StatisticsService.cs#L35
Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
CodeQL_build: Backend/Services/StatisticsService.cs#L94
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)
CodeQL_build: Backend/Services/StatisticsService.cs#L109
To avoid double lookup, call 'TryAdd' instead of calling 'Add' with a 'ContainsKey' guard (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1864)
CodeQL_build: Backend/Services/StatisticsService.cs#L69
Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860)
CodeQL_build
No files were found with the provided path: /home/runner/work/_temp/*.log. No artifacts will be uploaded.