Skip to content

fix(quality): add KEY_CACHE completeness test, replace partial_cmp with total_cmp#75

Merged
mostafa merged 1 commit into
mainfrom
fix/code-quality
May 6, 2026
Merged

fix(quality): add KEY_CACHE completeness test, replace partial_cmp with total_cmp#75
mostafa merged 1 commit into
mainfrom
fix/code-quality

Conversation

@mostafa
Copy link
Copy Markdown
Member

@mostafa mostafa commented May 6, 2026

Summary

Depends on #71.

  • Add exhaustive test that verifies all lint key strings are present in KEY_CACHE, turning a runtime panic into a test-time failure
  • Replace partial_cmp().expect("NaN filtered") with f64::total_cmp() in window.rs percentile/median calculations, eliminating potential panic on NaN

Test plan

  • all_lint_keys_are_cached test passes
  • All existing eval tests pass with total_cmp

@mostafa mostafa force-pushed the fix/security-critical branch from c78c56f to 3c8e980 Compare May 6, 2026 10:15
Base automatically changed from fix/security-critical to main May 6, 2026 10:44
@mostafa mostafa force-pushed the fix/code-quality branch 2 times, most recently from d081938 to 2a56d7f Compare May 6, 2026 11:00
…th total_cmp

- Add exhaustive test that verifies all lint key strings are present in
  KEY_CACHE, turning a runtime panic into a test-time failure
- Replace partial_cmp().expect("NaN filtered") with f64::total_cmp()
  in window.rs percentile/median calculations, eliminating panic on NaN
@mostafa mostafa force-pushed the fix/code-quality branch from 2a56d7f to fa78bdd Compare May 6, 2026 11:14
@mostafa mostafa merged commit b860b1e into main May 6, 2026
12 of 13 checks passed
@mostafa mostafa deleted the fix/code-quality branch May 6, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant