CodeQL 13: chore: additional style fixes (ternary, complex-block, implicit-conversion)#199
CodeQL 13: chore: additional style fixes (ternary, complex-block, implicit-conversion)#199rlorenzo wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Bundle ReportBundle size has no change ✅ |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #199 +/- ##
=======================================
Coverage 42.96% 42.97%
=======================================
Files 877 877
Lines 51468 51450 -18
Branches 4802 4797 -5
=======================================
- Hits 22113 22109 -4
+ Misses 28831 28817 -14
Partials 524 524
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Summary
Final sweep of CodeQL style alerts that earlier PRs left as wontfix:
course-import-dialog.test.ts:72,96- narrow the union check by combiningtypeof === 'object'withinstanceof Error, then explicitas Errorcast on the truthy branch.MeritMultiYearService.CalculateMedian- five for-loops appending to a List collapsed into chainedEnumerable.Repeat(...).Concat(...).GradYearClassLevel.cs:63- case-4 if-else assignmentRotationsController.cs:63-serviceId.HasValue ? GetRotationsByServiceAsync : GetRotationsAsyncUinformService.cs:247-response.IsSuccessStatusCode ? Deserialize : new ErrorResponseEffortAuditService.cs:605- termCode-keyed IQueryable selectionuseless-tostringfix onGradYearClassLevel.cs:57,60,69(no-op vs PR CodeQL 12: chore: style sweep for remaining CodeQL alerts #198 which has the same change).Context
Thirteenth in the
CodeQL N:cleanup series.Test plan
npm run test:backend- 1946 tests passing