Skip to content
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

Use "symilar -d args" error #9343

Closed
wk333 opened this issue Jan 3, 2024 · 0 comments · Fixed by #9709
Closed

Use "symilar -d args" error #9343

wk333 opened this issue Jan 3, 2024 · 0 comments · Fixed by #9709
Labels
Crash 💥 A bug that makes pylint crash
Milestone

Comments

@wk333
Copy link

wk333 commented Jan 3, 2024

Bug description

In fedora38

cat > test.py << EOF
#!/usr/bin/env python3

print('test')
EOF

symilar -d 4 test.py test.py

Command used

symilar.py

Pylint output

[root@e6aaae57a5ab ~]# symilar -d 4 test.py test.py
Traceback (most recent call last):
  File "/usr/bin/symilar", line 8, in <module>
    sys.exit(run_symilar())
             ^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pylint/__init__.py", line 84, in run_symilar
    SimilarRun(argv or sys.argv[1:])
  File "/usr/lib/python3.11/site-packages/pylint/checkers/similar.py", line 931, in Run
    min_lines = int(val)
                ^^^^^^^^
ValueError: invalid literal for int() with base 10: ''

Expected behavior

[root@e6aaae57a5ab ~]# symilar --duplicates 4 test.py test.py
TOTAL lines=6 duplicates=0 percent=0.00

Pylint version

pylint 2.17.4
astroid 2.15.4
python 3.11.5
@wk333 wk333 added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Jan 3, 2024
@Pierre-Sassoulas Pierre-Sassoulas added Crash 💥 A bug that makes pylint crash and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Jan 4, 2024
@Pierre-Sassoulas Pierre-Sassoulas added this to the 3.0.4 milestone Jan 4, 2024
@Pierre-Sassoulas Pierre-Sassoulas modified the milestones: 3.0.4, 3.1.1 Feb 23, 2024
@jacobtylerwalls jacobtylerwalls modified the milestones: 3.1.1, 3.2.1, 3.2.2 May 13, 2024
Pierre-Sassoulas added a commit to Pierre-Sassoulas/pylint that referenced this issue Jun 7, 2024
@Pierre-Sassoulas Pierre-Sassoulas added this to the 3.2.4 milestone Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crash 💥 A bug that makes pylint crash
Projects
None yet
3 participants