diff --git a/CHANGELOG.md b/CHANGELOG.md index e204b8c..4c963ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ All notable changes to Diskern are documented here. The format follows - The CLI scan summary now says "1 file" instead of "1 files" when a scan sees exactly one file +- Removed unused finding categories for duplicate files and empty folders, + since duplicates already have their own report section and empty folders are + not produced by the scanner ## [0.3.0] — 2026-09-12 diff --git a/app/src/App.jsx b/app/src/App.jsx index 2a77f70..268e5cf 100644 --- a/app/src/App.jsx +++ b/app/src/App.jsx @@ -12,8 +12,6 @@ const CATEGORY_LABEL = { temp_file: "Temporary files", log: "Logs", installer: "Old installers", - duplicate_file: "Duplicate file", - empty_directory: "Empty folders", system_critical: "System critical", unknown: "Unrecognized", }; diff --git a/crates/diskern-cli/src/main.rs b/crates/diskern-cli/src/main.rs index b0955ad..fc51363 100644 --- a/crates/diskern-cli/src/main.rs +++ b/crates/diskern-cli/src/main.rs @@ -89,8 +89,6 @@ fn category_label(c: Category) -> &'static str { Category::TempFile => "Temporary files", Category::Log => "Logs", Category::Installer => "Installers", - Category::DuplicateFile => "Duplicate file", - Category::EmptyDirectory => "Empty folders", Category::SystemCritical => "System critical", Category::Unknown => "Unrecognized", } diff --git a/crates/diskern-cli/tests/scan_roots.rs b/crates/diskern-cli/tests/scan_roots.rs index 3b4cdd3..23e5c54 100644 --- a/crates/diskern-cli/tests/scan_roots.rs +++ b/crates/diskern-cli/tests/scan_roots.rs @@ -99,7 +99,7 @@ fn scan_excludes_cli_directories() { ); let stdout = String::from_utf8_lossy(&output.stdout); assert!( - stdout.contains("Scanned 1 files."), + stdout.contains("Scanned 1 file."), "expected excluded directory to be skipped, got: {stdout}" ); } diff --git a/crates/diskern-core/src/lib.rs b/crates/diskern-core/src/lib.rs index d1d0789..17e9c09 100644 --- a/crates/diskern-core/src/lib.rs +++ b/crates/diskern-core/src/lib.rs @@ -76,8 +76,6 @@ pub enum Category { TempFile, Log, Installer, - DuplicateFile, - EmptyDirectory, SystemCritical, // driver stores, OS components — never touch Unknown, }