-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: ignore abbreviations #167
Comments
Hey @iendeavor, could you please provide more context thank you |
Hi, @loeffel-io For example, we might have some files containing the abbreviation "SMS", but it violates the PascalCase rule: ls:
.ts: PascalCase
|
Hey @iendeavor for this you can use the regex rule and allow only specific values or the negative of them with something like ls:
to:
.ts: regex:(Email|Foo|Bla)Service # allow EmailService, FooService, BlaService the negative could be this, but this isn't supported by re2 and go ls:
to:
.ts: regex:(?!HTTP|SMS).*Service # do not allow HTTPService, SMSService for this a |
Yes, this makes sense for the example mentioned earlier, but we might have any name anywhere in the filename, and we also want to validate it based on specific rules, like:
Example 2: https://github.com/apple/swift/tree/main/lib/AST
|
what about ls:
to:
.ts: regex:(Email|Foo|Bla)Service | camelCase # allow EmailService, FooService, BlaService and all camelCase filenames like |
Closing this for now - please let me know if you have any further questions |
I'm wondering if this is useful to anyone else 🤔:
Thank you~
The text was updated successfully, but these errors were encountered: