You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ pylint --version
pylint 3.2.3
astroid 3.2.2
Python 3.12.1 (main, Feb 7 2024, 10:25:21) [GCC 11.4.0]
$ pylint sample.py --enable R1711 --disable C,W
************* Module sample
sample.py:1:0: R1711: Useless return at end of function or method (useless-return)
------------------------------------------------------------------
Your code has been rated at 8.00/10 (previous run: 6.00/10, +2.00)
The text was updated successfully, but these errors were encountered:
Description
PLR1711 (
useless-return
) does not checkreturn
statements if they are indented.But with Pylint, R1711 checks.
I expect Ruff to behave in the same way as Pylint.
sample.py
Checks with Ruff
Checks with Pylint
The text was updated successfully, but these errors were encountered: