pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Bug description The [documentation](https://pylint.pycqa.org/en/latest/user_guide/checkers/extensions.html#parameter-documentation-checker-documentation) states that "Constructor parameters can be documented in either the class docstring or the __init__ docstring, but not both. However, I see that the docstring...
### Current problem For ```python result = '' for number in ['1', '2', '3']: result += number # [consider-using-join] ``` Where the final result would be ``"".join(['1', '2', '3'])`` we...
### Current problem We sometimes see code like this: ```python def foo(*, left=None, right=None): """ ... """ if (left is None) != (right is None): raise ValueError('Either both left= and...
### Bug description test_epylint.py mysteriously fails in my environment, regardless of python version, and possibly regardless of pylint version. **Note**: The name of my home directory is `c:\Users\Edward Ream.` Blanks...
### Bug description Two issues with ``bad-string-format-type``: 1. Just like ``bad-format-character`` the ``bad-string-format-type`` message is currently only raised for old-style string formatting. 2. If only a single value needs to...
A longstanding issue of `pylint` has been that there is little documentation about some of the messages and why they are emitted. For some messages the short message that is...
### Bug description Also mentioned in discussion in https://github.com/PyCQA/pylint/issues/5113. The following situation does not issue a message from Pylint: a.py: ```python for a, b, c, d, e, f, g in...
### Current problem Hi, is it in the roadmap to make pylint provide [SARIF](https://sarifweb.azurewebsites.net/) output ? (SARIF is the OASIS common format for all analysis tools ) It would help...
### Current problem The PEP-8 guidelines state that module level dunders are supposed to be [above](https://www.python.org/dev/peps/pep-0008/#module-level-dunder-names) imports. This is something pylint does not warn about if the code does not...
Any chance we can have an option to remove these module lines from "text" reporter? They are annoying when parsing the messages and require an extra step of filtering. This...