SublimePythonIDE icon indicating copy to clipboard operation
SublimePythonIDE copied to clipboard

# noqa style ignores for linter

Open thedodd opened this issue 11 years ago • 2 comments

It would be great if we could customize SPIDE to ignore linter errors on lines, or per module, if it detects comments matching a certain regex.

For example, flake8 will ignore modules having # flake8: noqa in the module, or a line having # noqa on it.

Does anything like this currently exist in SPIDE?

thedodd avatar Feb 18 '14 22:02 thedodd

:+1:

The way I'd go about implementing this is by adding "optional" flake8 support and adding it in the server/linter.py module similarly to the pyflakes_check and pep8_check functions.

The condition in do_linting function would check whether to use flake8 or the current pep8 and pyflakes linters.

Feel free to submit a pull request if you're interested in this.

asfaltboy avatar Feb 26 '14 07:02 asfaltboy

At the moment, the only functionality is to disable/enable PEP8 checks on a per-view basis (new commands were just merged to master).

As asfaltboy said, pull requests are welcome.

JulianEberius avatar Mar 09 '14 17:03 JulianEberius