Repository navigation
Enhance configuration parsing, output format, and testing - #11
Merged
Merged
Conversation
Use serde-derive + toml crate for robust parsing of the external config file instead of the manual line-by-line parser. Adds serde, toml, and serde_json dependencies and proper parse error messages.
Report now derives Serialize, includes a timestamp as the first line, and gains a to_json() method. The CLI accepts --json to print a pretty-printed JSON report instead of plain text, enabling SOC pipeline consumption.
Platform persistence checks now read recent_file_days from the optional UserConfig and fall back to the RECENT_FILE_DAYS constant, instead of a hardcoded 3-day window. Lets operators tune scan depth per deployment.
Populates tests/integration.rs with 11 tests covering Report behavior (timestamp, section, flag, JSON serialization), config loading (valid, malformed), the recent-files scanner, per-platform pattern constants, and config override preservation. Brings total to 14 passing tests.
Runs cargo fmt --check, clippy with -D warnings, tests, and release build on ubuntu-latest, windows-latest, and macos-latest with dependency caching.
Mark CI, structured output, test coverage, and CONTRIBUTING as complete in the roadmap; document --json usage, note heuristic-only limitations, and record completed commit history in PROGRESS.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.