Python fp and docs updtes (#58)

* refactor: Update comments for clarity and add expectations.json files for performance metrics

* feat: Implement FP guard for JS/TS local-collection receivers to suppress missing ownership checks

* feat: Enhance Rust parameter handling to classify local collections and prevent false ownership checks

* refactor: Simplify code formatting for better readability in multiple files

* refactor: Improve UTF-8 sequence length handling and enhance clarity in loop iteration

* feat: Update Java and Python patterns to include new security rules

* refactor: Improve comment clarity and consistency across multiple Rust files

* refactor: Simplify code formatting for improved readability in integration tests and module files

* refactor: Improve comment formatting and enhance clarity in assertions across multiple files
This commit is contained in:
Eli Peter 2026-04-29 19:53:34 -04:00 committed by GitHub
parent 4db0805de6
commit a438886217
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
291 changed files with 9485 additions and 3851 deletions

View file

@ -26,7 +26,7 @@ use nyx_scanner::rank::{compute_attack_rank, rank_diags};
// ── Diag factories ─────────────────────────────────────────────────────
/// A converged taint finding that the points-based scorer will score
/// as `Confidence::High`. Used as the "clean" baseline any delta
/// as `Confidence::High`. Used as the "clean" baseline, any delta
/// against this must come from attached engine notes.
fn high_confidence_taint_diag(path: &str, line: u32) -> Diag {
Diag {
@ -204,7 +204,7 @@ fn rank_diags_sorts_converged_above_capped_at_same_severity() {
#[test]
fn rank_diags_preserves_severity_tier_under_bail() {
// High + Bail must still outrank Medium + clean at the same
// evidence-strength baseline this is the tier-boundary invariant
// evidence-strength baseline, this is the tier-boundary invariant
// that the -8 completeness magnitude is calibrated for.
let mut high_bailed = high_confidence_taint_diag("a.rs", 1);
attach_notes(
@ -421,7 +421,7 @@ fn sarif_omits_loss_direction_for_informational_only() {
fn every_engine_note_direction_is_documented() {
// Enumerate every EngineNote variant and assert its direction.
// The intent is that a contributor adding a new variant will cause
// this test to fail to compile (no match arm) a structural guard
// this test to fail to compile (no match arm), a structural guard
// against silent misclassification.
fn check(note: EngineNote, expected: LossDirection) {
assert_eq!(