58 lines
2.9 KiB
Plaintext
58 lines
2.9 KiB
Plaintext
=== Rust/Tauri Code Quality Checks ===
|
||
|
||
Checking for magic numbers...
|
||
[0;32mOK:[0m No obvious magic numbers found
|
||
|
||
Checking for repeated string literals...
|
||
[0;32mOK:[0m No excessively repeated strings found
|
||
|
||
Checking for TODO/FIXME comments...
|
||
[0;32mOK:[0m 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)
|
||
[1;33mWARNING:[0m Clippy found unused imports or dead code (see above)
|
||
|
||
Checking for long functions...
|
||
[0;32mOK:[0m No excessively long functions found
|
||
|
||
Checking for deep nesting...
|
||
[1;33mWARNING:[0m 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...
|
||
[0;32mOK:[0m No unwrap() calls found
|
||
|
||
Checking for excessive clone() usage...
|
||
[0;32mOK:[0m No excessive clone() usage detected
|
||
|
||
Checking for functions with long parameter lists...
|
||
[0;32mOK:[0m No functions with excessive parameters found
|
||
|
||
Checking for duplicated error messages...
|
||
[0;32mOK:[0m No duplicated error messages found
|
||
|
||
Checking module file sizes...
|
||
[1;33mWARNING:[0m 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...
|
||
[0;32mOK:[0m Helper functions reasonably centralized (10 files)
|
||
|
||
=== Summary ===
|
||
Errors: [0;31m0[0m
|
||
Warnings: [1;33m3[0m
|
||
[0;32mCode quality checks passed![0m
|