bun913 / textlint-rule-aws-service-name

MIT License
22 stars 2 forks source link

Is there a way to exclude certain notations? #64

Closed watany-dev closed 12 months ago

watany-dev commented 1 year ago

I've been consistently utilizing this fantastic Lint tool, thank you.

I've run into a challenge lately and wanted to check if there's a feature for it. When there is a specific identifier, like 'some-vpc-0000', it doesn't pass the Lint unless it's 'some-VPC-0000'.

I'd appreciate it if there's a way to exclude this particular notation. If not, please allow me to assist in implementing this feature.

watany-dev commented 1 year ago

Should I proceed with this approach? https://dev.classmethod.jp/articles/how-to-ignore-in-textlint/

exoego commented 1 year ago

You may try https://github.com/textlint/textlint-filter-rule-comments

<!-- textlint-disable aws-service-name -->

some-vpc-0000 is ok here

<!-- textlint-enable aws-service-name -->

some-vpc-0000 is not ok here
bun913 commented 1 year ago

@watany-dev

I apologize for the delayed response!

For recurring prefixes, as you've said, they can be ignored with regular expressions!

Also, if you want to locally ignore the rules, as @exoego has mentioned, you can address this by inserting comments within the markdown.

@watany-dev Would either of these methods work for you?

@exoego Thank you as always!

bun913 commented 12 months ago

Since some time has passed, I am going to close this issue for now.