-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Crash 💥A bug that makes pylint crashA bug that makes pylint crash
Milestone
Description
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
Metadata
Metadata
Assignees
Labels
Crash 💥A bug that makes pylint crashA bug that makes pylint crash