summaryrefslogtreecommitdiff
path: root/pylint/checkers/nested_min_max.py
Commit message (Collapse)AuthorAgeFilesLines
* Bump astroid to 3.0.0a1 (#8626)Marc Mueller2023-04-251-1/+7
|
* Cope with changes to `Starred` constructorJacob Walls2023-04-161-1/+9
|
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* Fix `nested-min-max` output msg for sequences (#8234)Dani Alcala2023-02-081-1/+22
|
* Add extension checker for nested min/max (#7550)Osher De Paz2022-11-211-0/+95
This adds a new checker (not active by default) which identifies usages similar to ``min(<arg1>, min(<arg2>, <arg3>))`` and suggests using a simplified form of ``min(<arg1>, <arg2>, <arg3>)``. Same goes for ``max`` usage. The logic is as follows: it detects calls to either ``min`` or ``max`` functions, and whenever one of their arguments is that same function, it emits the message. Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>