codefactor-io/codefactor

Pylint E0611 False Positive

XPhyro opened this issue · 2 comments

You can see the issues on https://www.codefactor.io/repository/github/xphyro/image-entropy/issues or a screenshot of them below.

2022-08-05_20-35

This is a false positive, and is not caused by pylint. When I run pylint on the file in question, it does not produce an E0611 error.

Here's my pylint version:

$ pylint --version
pylint 2.14.5
astroid 2.12.2
Python 3.10.5 (main, Aug  1 2022, 07:53:20) [GCC 12.1.0]

Edit: It's now fixed on this commit. I don't know why, there were no changes in the relevant parts of the code.

@XPhyro thanks for reporting. We've disabled no-name-in-module (E0611) rule for now. It was sometimes being flagged as false positive due to the way CodeFactor runs pylint command (using files as opposed to packages/directories).

We'll re-enable this rule when pylint tool usage issue is resolved.