summaryrefslogtreecommitdiff
path: root/doc/data/messages/n/nested-min-max/bad.py
Commit message (Collapse)AuthorAgeFilesLines
* Add extension checker for nested min/max (#7550)Osher De Paz2022-11-211-0/+1
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>