pylint icon indicating copy to clipboard operation
pylint copied to clipboard

Add support for noqa: ERROR MESSAGE

Open PCManticore opened this issue 7 years ago • 19 comments

Is your feature request related to a problem? Please describe

Yes. The problem is that every linter out there has its own pragma control, leading to a mess if you want to support bandit, pylint, pyflakes, flake8, mypy: … # type: … # noqa: E501 # pylint: disable=line-too-long # nosec

I think it would help if we'd also support noqa with an error message (not bare noqa which I'm still against using in pylint). It could also help with the adoption as well with keeping your codebase linter agnostic if you plan to use just pylint and flake8.

Describe the solution you'd like

Support noqa: error message so noqa: no-member or noqa: E1101 in pylint.

PCManticore avatar Sep 15 '18 08:09 PCManticore