Skip to content

chore: remove deprecated validator, add forbid(unsafe_code)#26

Merged
moutons merged 2 commits intomainfrom
chore/remove-dead-code
Apr 21, 2026
Merged

chore: remove deprecated validator, add forbid(unsafe_code)#26
moutons merged 2 commits intomainfrom
chore/remove-dead-code

Conversation

@moutons
Copy link
Copy Markdown
Owner

@moutons moutons commented Apr 20, 2026

Summary

  • Delete legacy validator.rs module and its tests — validate() / ValidationResult were deprecated in 0.2.0, replaced by run_pipeline() / PipelineResult
  • Simplify main.rs to use the library crate instead of redeclaring all modules (root cause of 22 dead code warnings)
  • Add #![forbid(unsafe_code)] to both lib.rs and main.rs
  • Remove backward-compat ValidationResult bridge from scan module
  • Migrate fixture integration tests to pipeline API

-747 lines, +46 lines. All 284 tests pass.

Test plan

  • cargo test passes (284 tests)
  • cargo clippy -- -D warnings clean
  • CI passes

🤖 Generated with Claude Code

claude-bot and others added 2 commits April 20, 2026 10:03
- Delete src/validator.rs and tests/validator.rs (legacy validate()
  replaced by run_pipeline() in 0.2.0)
- Remove backward-compat ValidationResult bridge from scan.rs
- Make pipeline_result a direct field instead of Option
- Simplify main.rs to use the library crate instead of redeclaring
  all modules (eliminates all dead code warnings)
- Add #![forbid(unsafe_code)] to both lib.rs and main.rs
- Migrate fixture integration tests to use pipeline API

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@moutons moutons merged commit 441854b into main Apr 21, 2026
11 checks passed
@moutons moutons deleted the chore/remove-dead-code branch April 21, 2026 06:22
@github-actions github-actions Bot mentioned this pull request Apr 21, 2026
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