New Rule: Directory Structure
Jeehut opened this issue · comments
Cihat Gündüz commented
A rule that allows to specify how the files in a directory should be structured and what kind of files are allowed. An example configuration could look something like this:
- rules:
- directory_structure:
- App/Sources:
apply_to_subfolders: true
allowed_files_regex: ".*\\.swift"
- App/Sources/Extensions:
apply_to_subfolders: true
allowed_files_regex: ".*Extension\\.swift"
- App/SupportingFiles:
apply_to_subfolders: true
disallowed_files_regex: ".*\\.swift"