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
CharContext and BraceValidationState into 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
Requested by: @leynos
Overview
The brace-validation and escape logic in
src/manifest/glob.rshas become quite intricate and could benefit from simplification to reduce maintenance overhead.Suggested Improvements
Consider one of the following approaches:
CharContextandBraceValidationStateinto a smaller internal utility moduleContext
This issue was identified during review of PR #168 which refactored the manifest module. The current implementation has:
Benefits
References
Requested by: @leynos