Skip to content

Refactor src/manifest.rs: Extract glob helpers to submodule (exceeds 400-line limit) #136

@coderabbitai

Description

@coderabbitai

Problem

The src/manifest.rs file has grown to approximately 490 lines, exceeding the 400-line guideline specified in the coding standards.

Solution

Extract glob-specific helper functions into a new submodule src/manifest/glob.rs:

  • Move process_glob_entry(), normalise_separators(), and glob_paths()
  • Keep function signatures unchanged
  • Use pub(crate) visibility or re-export through mod glob
  • Update from_str_named() to use super::glob_paths
  • Ensure public API surface remains unchanged
  • Update module declarations and imports accordingly

Context

This issue was identified during PR review where glob functionality was added to the manifest module.

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions