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

@ -136,7 +136,7 @@ pub fn spawn_file_walker(root: &Path, cfg: &Config) -> (Receiver<Paths>, JoinHan
};
let is_file = metadata.file_type().is_file();
let under_limit = max_bytes == 0 || metadata.len() <= max_bytes;
// Always canonicalize and verify containment a symlink
// Always canonicalize and verify containment, a symlink
// in the tree can escape the root even when follow=false
// if the walker resolves it at metadata time.
let path_allowed = canonical_root.as_ref().is_none_or(|root| {
@ -306,7 +306,7 @@ fn walker_follow_symlinks_does_not_escape_root() {
#[test]
fn walker_no_follow_symlinks_still_rejects_outside_paths() {
// Pre-existing symlink to an out-of-root file must be excluded even when
// follow_symlinks=false the walker may surface the resolved path on
// follow_symlinks=false, the walker may surface the resolved path on
// some platforms.
use std::os::unix::fs::symlink;