-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
mediumCould be disruptive, but might not happenCould be disruptive, but might not happen
Description
Overview
The brace-validation and escape logic in src/manifest/glob.rs has become quite intricate and could benefit from simplification to reduce maintenance overhead.
Suggested Improvements
Consider one of the following approaches:
- Extract shared helpers: Move shared utilities like
CharContextandBraceValidationStateinto a smaller internal utility module - Use dedicated crate: Leverage an existing glob/brace-expansion crate to reduce custom implementation complexity
Context
This issue was identified during review of PR #168 which refactored the manifest module. The current implementation has:
- Complex character processing logic with multiple state transitions
- Intricate brace matching and validation rules
- Platform-specific escape handling
Benefits
- Reduced maintenance burden
- Improved code readability
- Potential bug reduction through battle-tested libraries
- Better separation of concerns
References
- PR: Refactor manifest module into dedicated submodules #168
- Discussion: Refactor manifest module into dedicated submodules #168 (comment)
Requested by: @leynos
Metadata
Metadata
Assignees
Labels
mediumCould be disruptive, but might not happenCould be disruptive, but might not happen