Files
noteflow/.hygeine/rust_code_quality.txt
2026-01-02 04:22:40 +00:00

2.9 KiB

=== Rust/Tauri Code Quality Checks ===
 
Checking for magic numbers...
OK: No obvious magic numbers found
 
Checking for repeated string literals...
OK: No excessively repeated strings found
 
Checking for TODO/FIXME comments...
OK: No TODO/FIXME comments found
 
Checking for unused imports and dead code (clippy)...
warning: you should consider adding a `Default` implementation for `AppState`
warning: `noteflow-tauri` (lib) generated 1 warning (run `cargo clippy --fix --lib -p noteflow-tauri` to apply 1 suggestion)
WARNING: Clippy found unused imports or dead code (see above)
 
Checking for long functions...
OK: No excessively long functions found
 
Checking for deep nesting...
WARNING: Found potentially deep nesting (>7 levels):
/home/trav/repos/noteflow/client/src-tauri/scripts/../src/commands/playback.rs:59: let duration = buffer
/home/trav/repos/noteflow/client/src-tauri/scripts/../src/commands/playback.rs:60: .last()
/home/trav/repos/noteflow/client/src-tauri/scripts/../src/commands/playback.rs:61: .map(|chunk| chunk.timestamp + chunk.duration)
/home/trav/repos/noteflow/client/src-tauri/scripts/../src/commands/playback.rs:62: .unwrap_or(0.0);
/home/trav/repos/noteflow/client/src-tauri/scripts/../src/commands/playback.rs:63: tracing::debug!("Loaded encrypted audio from {:?}", audio_path);
/home/trav/repos/noteflow/client/src-tauri/scripts/../src/commands/playback.rs:64: return LoadedAudio {
/home/trav/repos/noteflow/client/src-tauri/scripts/../src/commands/playback.rs:65: buffer,
/home/trav/repos/noteflow/client/src-tauri/scripts/../src/commands/playback.rs:66: sample_rate,
/home/trav/repos/noteflow/client/src-tauri/scripts/../src/commands/playback.rs:67: duration,
/home/trav/repos/noteflow/client/src-tauri/scripts/../src/commands/playback.rs:68: };
 
Checking for unwrap() usage...
OK: No unwrap() calls found
 
Checking for excessive clone() usage...
OK: No excessive clone() usage detected
 
Checking for functions with long parameter lists...
OK: No functions with excessive parameters found
 
Checking for duplicated error messages...
OK: No duplicated error messages found
 
Checking module file sizes...
WARNING: Large files (>500 lines):
597 /home/trav/repos/noteflow/client/src-tauri/scripts/../src/commands/playback.rs
537 /home/trav/repos/noteflow/client/src-tauri/scripts/../src/grpc/streaming.rs
 
 
Checking for scattered helper functions...
OK: Helper functions reasonably centralized (10 files)
 
=== Summary ===
Errors: 0
Warnings: 3
Code quality checks passed!