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

[Feature Request] disable checks per line with comments #80

Open
catskul opened this issue Dec 12, 2018 · 1 comment
Open

[Feature Request] disable checks per line with comments #80

catskul opened this issue Dec 12, 2018 · 1 comment

Comments

@catskul
Copy link
Contributor

catskul commented Dec 12, 2018

I didn't see any reference to this feature in the documentation, so forgive me if it already exists.

Most linters allow disableing of rules per line with something like:
// kwstyle-disable-NameOfClass
// kwstyle-enable-NameOfClass

This would avoid the need to ignore a file completely if there is one exception to the rules within the file.

If this feature already exists we should put it in the documentation.

@b-morgenthaler
Copy link

b-morgenthaler commented Jun 3, 2020

This request is open for quite some time and since our evaluation also pointed in the same direction that there is not such possibility, I would like to draw some attention to it. Any chance that this may be possible in the near future?

lrstewart added a commit to lrstewart/s2n that referenced this issue Feb 11, 2022
I think this is a bug in kwstyle. The original code produces errors
like "error: function (() doesn't match regular expression: [A-Za-z=_+]".

There's apparently no way to suppress kwstyle for single lines:
Kitware/KWStyle#80
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