Skip to content

CodeQL 11: chore(tests): replace Returns((T?)null) casts with ReturnsNull() #380

CodeQL 11: chore(tests): replace Returns((T?)null) casts with ReturnsNull()

CodeQL 11: chore(tests): replace Returns((T?)null) casts with ReturnsNull() #380

Triggered via pull request May 16, 2026 18:51
Status Success
Total duration 2m 26s
Artifacts

tests.yml

on: pull_request
Frontend Tests
45s
Frontend Tests
Backend Tests
2m 24s
Backend Tests
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
Frontend Tests
Unexpected input(s) 'report-type', valid inputs are ['base_sha', 'binary', 'codecov_yml_path', 'commit_parent', 'directory', 'disable_file_fixes', 'disable_search', 'disable_safe_directory', 'disable_telem', 'dry_run', 'env_vars', 'exclude', 'fail_ci_if_error', 'files', 'flags', 'force', 'git_service', 'gcov_args', 'gcov_executable', 'gcov_ignore', 'gcov_include', 'handle_no_reports_found', 'job_code', 'name', 'network_filter', 'network_prefix', 'os', 'override_branch', 'override_build', 'override_build_url', 'override_commit', 'override_pr', 'plugins', 'recurse_submodules', 'report_code', 'report_type', 'root_dir', 'run_command', 'skip_validation', 'slug', 'swift_project', 'token', 'url', 'use_legacy_upload_endpoint', 'use_oidc', 'use_pypi', 'verbose', 'version', 'working-directory']
Backend Tests
Unexpected input(s) 'report-type', valid inputs are ['base_sha', 'binary', 'codecov_yml_path', 'commit_parent', 'directory', 'disable_file_fixes', 'disable_search', 'disable_safe_directory', 'disable_telem', 'dry_run', 'env_vars', 'exclude', 'fail_ci_if_error', 'files', 'flags', 'force', 'git_service', 'gcov_args', 'gcov_executable', 'gcov_ignore', 'gcov_include', 'handle_no_reports_found', 'job_code', 'name', 'network_filter', 'network_prefix', 'os', 'override_branch', 'override_build', 'override_build_url', 'override_commit', 'override_pr', 'plugins', 'recurse_submodules', 'report_code', 'report_type', 'root_dir', 'run_command', 'skip_validation', 'slug', 'swift_project', 'token', 'url', 'use_legacy_upload_endpoint', 'use_oidc', 'use_pypi', 'verbose', 'version', 'working-directory']
Backend Tests: web/Areas/Effort/Services/EvalHarvestService.cs#L221
'CreateAdHocEvaluationAsync' has a cyclomatic complexity of '28'. Rewrite or refactor the code to decrease its complexity below '26'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1502)
Backend Tests: web/Areas/Effort/Services/EvalHarvestService.cs#L33
'GetCourseEvaluationStatusAsync' has a cyclomatic complexity of '33'. Rewrite or refactor the code to decrease its complexity below '26'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1502)
Backend Tests: web/Areas/Effort/Services/EffortRecordService.cs#L67
'CreateEffortRecordAsync' has a cyclomatic complexity of '27'. Rewrite or refactor the code to decrease its complexity below '26'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1502)
Backend Tests: web/Areas/Effort/Services/EffortAuditService.cs#L672
'BuildFilteredQuery' has a cyclomatic complexity of '41'. Rewrite or refactor the code to decrease its complexity below '26'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1502)
Backend Tests: web/Areas/Directory/Controllers/DirectoryController.cs#L105
'GetUCD' has a cyclomatic complexity of '26'. Rewrite or refactor the code to decrease its complexity below '26'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1502)
Backend Tests: web/Areas/CTS/Controllers/AssessmentController.cs#L47
'GetAssessments' has a cyclomatic complexity of '30'. Rewrite or refactor the code to decrease its complexity below '26'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1502)
Backend Tests: web/Areas/ClinicalScheduler/Services/ScheduleEditService.cs#L49
'AddInstructorAsync' has a cyclomatic complexity of '37'. Rewrite or refactor the code to decrease its complexity below '26'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1502)
Backend Tests: web/Areas/ClinicalScheduler/Controllers/CliniciansController.cs#L125
'GetClinicianSchedule' has a cyclomatic complexity of '29'. Rewrite or refactor the code to decrease its complexity below '26'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1502)
Backend Tests: web/Program.cs#L1
'<Main>$' has a cyclomatic complexity of '41'. Rewrite or refactor the code to decrease its complexity below '26'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1502)
Backend Tests: web/Program.cs#L33
'Program' has a maintainability index of '2'. Rewrite or refactor the code to increase its maintainability index (MI) above '9'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1505)