Skip to content

refactor: comprehensive codebase improvements for v2.8.0 - #12

Merged
7a6163 merged 1 commit into
mainfrom
refactor/v2.8.0
Mar 16, 2026
Merged

refactor: comprehensive codebase improvements for v2.8.0#12
7a6163 merged 1 commit into
mainfrom
refactor/v2.8.0

Conversation

@7a6163

@7a6163 7a6163 commented Mar 16, 2026

Copy link
Copy Markdown
Owner
  • Extract CheckOptions struct with clap::Args to eliminate parameter explosion
  • Split cmd_check (310 lines) into 5 focused functions
  • Split scanner.rs (1148 lines) into scanner/{mod,report,network}.rs
  • Create shared lockfile/platform.rs to unify duplicated platform parsing
  • Encapsulate parser state into SourceState struct with methods
  • Migrate deprecated serde_yaml to serde_yml
  • Fix Database::open().unwrap() panic with proper error propagation
  • Extract check_staleness/build_ignore_comments to src/check.rs for testability
  • Replace .ok() with io::Result<()> in format output (text.rs, json.rs)
  • Handle broken pipe gracefully in CLI output
  • Add tempfile crate for reliable test cleanup
  • Add Clone derive to FixSuggestion
  • Add 13 new unit tests (307 → 320)

- Extract CheckOptions struct with clap::Args to eliminate parameter explosion
- Split cmd_check (310 lines) into 5 focused functions
- Split scanner.rs (1148 lines) into scanner/{mod,report,network}.rs
- Create shared lockfile/platform.rs to unify duplicated platform parsing
- Encapsulate parser state into SourceState struct with methods
- Migrate deprecated serde_yaml to serde_yml
- Fix Database::open().unwrap() panic with proper error propagation
- Extract check_staleness/build_ignore_comments to src/check.rs for testability
- Replace .ok() with io::Result<()> in format output (text.rs, json.rs)
- Handle broken pipe gracefully in CLI output
- Add tempfile crate for reliable test cleanup
- Add Clone derive to FixSuggestion
- Add 13 new unit tests (307 → 320)
@7a6163
7a6163 merged commit f4543d8 into main Mar 16, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant