summaryrefslogtreecommitdiff
path: root/pylint/checkers/base_checker.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos accross the whole codebase (#5575)Pierre Sassoulas2021-12-211-2/+2
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Bump pylint to 2.12.0, update changelogv2.12.0Pierre Sassoulas2021-11-251-0/+1
| | | | Closes #5250
* Add ``end_lineno`` and ``end_col_offset`` to ``MessageLocationTuple`` (#5343)Daniël van Noord2021-11-221-1/+5
|
* Refactor ``LinterStats`` (#5074)Daniël van Noord2021-10-071-2/+0
| | | | | | | | * Refactor ``self.stats`` on linter and checker This adds a new class ``LinterStats`` which is used to store all kinds of stats during a run of ``pylint``. Tests have been changed slightly to be able to use the new class. Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate (#5082)pre-commit-ci[bot]2021-09-281-1/+1
| | | | | | | | | | | * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v2.26.0 → v2.28.0](https://github.com/asottile/pyupgrade/compare/v2.26.0...v2.28.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Type `add_message` and add `MessageLocationTuple` (#5050)Daniël van Noord2021-09-211-6/+12
| | | | | | * Type `add_message` and add `MessageLocationTuple` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Bump pylint to 2.11.0, update changelogv2.11.0Pierre Sassoulas2021-09-161-0/+1
|
* Add typing to all calls to ``self.stats`` (#4973)Daniël van Noord2021-09-151-0/+2
| | | | | | | | | | | | | | | * Add typing to all calls to ``self.stats`` All checkers inherit from a baseclass which has a ``stats`` attribute. This attribute has a fairly unmanageable type, but the current typing includes all variations of the attribute. Other changes not directly related to ``self.stats`` are due to ``mypy``warnings. This incorporate the feedback received in #4954 * Add ``CheckerStatistic`` class to ``pylint/typing`` * Guard `typing.Counter` import Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add ``Consider-using-f-string`` checker (#4796)Daniël van Noord2021-08-301-9/+11
| | | | | | | | | | | | | | | | * Add ``consider-using-f-string`` checker This adds a checker for normal strings which are formatted with ``.format()`` or '%'. The message is a convention to nudge users towards using f-strings. This closes #3592 * Update pylint code to use f-strings After adding `consider-using-f-strings` the codebase showed numerous cases of formatting which could be f-strings. This commit changes most of these to become f-strings, or adds ignores. * Apply suggestions from code review Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bump pylint to 2.9.3, update changelogv2.9.3Pierre Sassoulas2021-07-011-0/+1
|
* Fix copyright links (#4647)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Update link to astroid bump_changelog
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Refactor from old style typing to new style typingPierre Sassoulas2021-03-311-5/+5
|
* Fix classes do not defining 4 ordering comparison methodsPierre Sassoulas2021-03-281-1/+2
|
* Apply copyrite --contribution-thresholdPierre Sassoulas2021-02-211-1/+2
|
* Move from format() to f-string where it makes sensePierre Sassoulas2021-02-161-18/+11
| | | | As we do not maintain python 3.5 it permit to simplify some code
* Update formatting following black and isort updatePierre Sassoulas2020-09-101-1/+1
|
* Sets up copyrighthippo912020-08-201-1/+1
|
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-1/+4
|
* [pylint.checkers] Clearer __repr__ when printing checkersPierre Sassoulas2019-08-191-2/+2
|
* Feat - Add a __str__ function to BaseCheckerPierre Sassoulas2019-06-201-0/+9
|
* Refactor - Giving multiple parameters instead of a dictPierre Sassoulas2019-06-201-6/+1
| | | | This make the understanding of the function easier.
* Refactor - Use self directly in checker get_full_documentationPierre Sassoulas2019-06-201-6/+4
|
* Refactor - Clearer function name ('rest' -> 'rst') in utilsPierre Sassoulas2019-06-201-7/+7
| | | | | I used the old name but there was probably a typo in it, as the format is called rst.
* Fix - Remove invalid syntax in python 3.4Pierre Sassoulas2019-06-201-1/+1
| | | | Mypy requirements and python 3.4 seem incompatible.
* Refactor - Move doc for checkers in BaseCheckerPierre Sassoulas2019-06-201-1/+43
| | | | At long last.
* Fix - A typo in base_checker.pyPierre Sassoulas2019-06-201-1/+1
|
* Refactor - Simplify the Checker.__repr__ functionPierre Sassoulas2019-06-201-2/+3
| | | | Following review see : https://github.com/PyCQA/pylint/pull/2844#discussion_r281015055
* Refactor - Move build_message_definition to the BaseChecker classPierre Sassoulas2019-06-201-10/+31
|
* Fix - better error msg for getmessagedefinition (sqsuash)Pierre Sassoulas2019-06-201-2/+2
|
* Feat - Permit to get message definition by msgid in CheckersPierre Sassoulas2019-06-201-0/+8
|
* Feat - Add a __repr__ and __gt__ function for BaseCheckersPierre Sassoulas2019-06-201-0/+11
| | | | | Permit pylint's developper to see what is inside a sorted list of checkers.
* Style - Use a single list comprehension instead of a for loopClaudiu Popa2019-03-291-5/+4
| | | | Co-Authored-By: Pierre-Sassoulas <pierre.sassoulas@gmail.com>
* Refactor - Create file for BaseCheckerPierre Sassoulas2019-03-291-0/+103
It was 'hidden' in checkers.__init__.py