Skip to content

Conversation

@fvaleye
Copy link
Owner

@fvaleye fvaleye commented Nov 6, 2025

Description

Improve code quality and update dependencies


Note

Precompiles regex sets in DataRules, changes constructors and validation methods to use them (and return results directly), updates tests, and bumps dependencies.

  • Core (rust/src/metadata_guardian.rs):
    • Add precompiled RegexSet to DataRules (with #[serde(skip)]), implement custom PartialEq/Eq.
    • Change DataRules::new to return Result and build RegexSet; from_path reconstructs via temp struct.
    • Simplify validate_word/validate_words to return results directly; use precompiled set and parallel iteration; optimize validate_file similarly.
  • Tests (rust/tests/data_guardian_test.rs):
    • Update to new API (no unwrap() on validate_word/validate_words); minor assertions adjusted.
  • Dependencies:
    • Bump regex to 1.12, serde_yaml to 0.9; refresh Cargo.lock with wide crate updates.

Written by Cursor Bugbot for commit e3e52cd. This will update automatically on new commits. Configure here.

@fvaleye fvaleye force-pushed the feature/code-quality-improvements branch 3 times, most recently from 2079d46 to 3a851f5 Compare November 6, 2025 15:53
@fvaleye fvaleye force-pushed the feature/code-quality-improvements branch from 3a851f5 to a08e362 Compare November 6, 2025 15:56
@fvaleye fvaleye merged commit b0aca01 into main Nov 6, 2025
8 checks passed
@fvaleye fvaleye deleted the feature/code-quality-improvements branch November 6, 2025 15:58
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.

2 participants