Skip to content

-j0 hides duplicate-code #987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
The-Compiler opened this issue Jul 7, 2016 · 2 comments
Closed

-j0 hides duplicate-code #987

The-Compiler opened this issue Jul 7, 2016 · 2 comments
Labels
Milestone

Comments

@The-Compiler
Copy link
Contributor

When I have two files like this:

def fun1():
    pass

def fun2():
    pass

def fun3():
    pass

And I run pylint (1.5.0 or current master) without -j, I get duplicate-code as expected:

$ pylint 1.py 2.py -rn --disable=all --enable=duplicate-code    
No config file found, using default configuration
************* Module 2
R:  1, 0: Similar lines in 2 files
[...]

Adding -j0 hides the error:

$ pylint 1.py 2.py -rn --disable=all --enable=duplicate-code -j0
No config file found, using default configuration

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

I figured this out because I got the message on AppVeyor but not on Travis, so this might be a Linux-only issue?

The-Compiler added a commit to qutebrowser/qutebrowser that referenced this issue Jul 8, 2016
See pylint-dev/pylint#987

On my laptop I get about a 3m -> 2m20s speedup, which isn't really worth
the trouble...
@doublethefish
Copy link
Contributor

Fixed by PR #3458, also see #3314 .

@Pierre-Sassoulas
Copy link
Member

Closing because it was fixed in #4007 (pylint 2.6.1) based on #3458

@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.6.1 milestone Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants