When pylint-django
is installed error messages like Class 'MyModel' has no 'objects' member
disappear. But with them being disappeared some real errors are skipped too. For example, the line MyModel.objectss.all()
will not throw an error (note two s
in the word objects
).
Actually, I find it quite interesting, how pylint
is marking errors:
MyModel.objects.all()
(everything is correct) - gives no error.MyModel.objectss.all()
(twos
inobjects
) - gives no error.MyModel.objectss.alll()
(twos
inobjects
and threel
inall
) - givesClass 'MyModel' has no 'objectss' member
.MyModel.objects.alll()
(threel
inall
) - gives no error.
It's like at least two errors must occur in order for pylint
to throw an error.
I am working withVisual Studio Code 1.39.1
, pylint==2.4.2
, pylint-django==2.0.11
My Visual Studio
's settings.json
file looks like this:
{
"python.linting.pylintArgs": [
"--load-plugins=pylint_django"
]
}
So, is this a bug or is there something wrong with my config?