pylint-dev / pylint

It's not just a linter that annoys you!
https://pylint.readthedocs.io/en/latest/
GNU General Public License v2.0
5.31k stars 1.13k forks source link

Investigate if there is anything to learn from RuboCop/ESLint #2124

Open PCManticore opened 6 years ago

PCManticore commented 6 years ago

Let's check if we can learn something from these two tools that we can leverage in pylint. I'm thinking either:

sushobhit27 commented 6 years ago

Found one interesting check "no-self-assign" available in ESLint but not in pylint. $ cat sample2.py a = 786 a = a

$ pylint sample2.py


Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

$ pylint --version pylint 2.0.0.dev astroid 1.6.3 Python 3.6.4 (default, Jan 7 2018, 15:53:53) [GCC 6.4.0]

At line 2, there can be warning for self assignment.