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

Ignoring some errors generated by the linter #187

Closed
robojeb opened this issue Aug 25, 2014 · 2 comments
Closed

Ignoring some errors generated by the linter #187

robojeb opened this issue Aug 25, 2014 · 2 comments

Comments

@robojeb
Copy link

robojeb commented Aug 25, 2014

Some includes in my C++ project require me to specify additional include directories on the command line. Currently the linter marks these as errors. This is rather distracting when I am trying to find other issues. Would it be possible to add a way to silence errors?

@dmnd
Copy link

dmnd commented Aug 30, 2014

I can't think of a simple way to do this. How do you propose ignoring certain errors would work, from the perspective of both the UI and implementation (e.g. how do we persist that a message should be ignored?)

@ybc37
Copy link

ybc37 commented Feb 13, 2015

I'm facing the same problem. In my case, the 'problems' are AngularJS attributes. Using linter-tidy is kind of useless, because the file is littered with warnings (proprietary attributes; there's already feature request AtomLinter/linter-tidy#1).

Wouldn't it be possible to provide a second regex to plugins. This one could describe lines to be ignored. So plugins could have some specialized ignore settings (e.g. proprietary attributes to ignore), build a regex and pass it to the linter.

SublimeLinter has such a setting and syntastic has a setting to ignore tidy errors (g:syntastic_html_tidy_ignore_errors). Maybe there's some inspiration 😉

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

5 participants