Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

New Rule: File Name Regex #20

Open
Jeehut opened this issue Aug 4, 2018 · 0 comments
Open

New Rule: File Name Regex #20

Jeehut opened this issue Aug 4, 2018 · 0 comments
Labels
rule request A new rule is requested

Comments

@Jeehut
Copy link
Contributor

Jeehut commented Aug 4, 2018

It should be possible to define for specific folders or specific type extensions, what the file name should be structured like. A config could look something like this:

rules:
  - file_name_regex:
      - directory_content_matching:
          Sources/Extensions: "\A[A-Z]\S+Extension\.swift"
      - directory_content_not_matching:
          Sources/SupportingFiles: "\A.*\.swift\z"
      - type_extension_matching:
          swift: "\A[A-Z]\S+\.swift\z"
          plist: "\A[A-Z]\S+.plist\z"
@Jeehut Jeehut added this to the Public Release milestone Aug 4, 2018
@Jeehut Jeehut added the rule request A new rule is requested label Aug 4, 2018
@Jeehut Jeehut removed this from the Public Release milestone Sep 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
rule request A new rule is requested
Projects
None yet
Development

No branches or pull requests

1 participant