Skip to content
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

Is it possible to overwrite a built in rule? #56

Open
millotpg opened this issue Feb 6, 2019 · 1 comment
Open

Is it possible to overwrite a built in rule? #56

millotpg opened this issue Feb 6, 2019 · 1 comment

Comments

@millotpg
Copy link

millotpg commented Feb 6, 2019

I would like to customize the LineTooLong rule by overwriting it in a site_rules directory that is local to the project.

I have a custom LineTooLong rule but it doesn't load unless the class name is different from the built-in one. I've tried first ignoring the built-in LineTooLong rule with the -i flag and then loading the custom rule with the -R flag. However, rflint then just ignores both rules.

Overall, I'm trying to implement a way to ignore linting a rule on a line that ends with:

#rflint_ignore rule_name

Is there any way I can add this functionality?

@james-powis
Copy link

I too need this feature similar to how pylint allows for in file enabling and disabling of rules...

In my case, I have documentation and URLs which are long. This cannot be avoided, so the only option is to exclude that specific line from the rule it offends.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants