When i run the below command from my terminal i end up getting the below error, i am running this pylint on my django-project.
(venv) mypc:~/path/django-project$ pylint --rcfile=.pylintrc ./* > lint_ouput.txt
Error: Traceback (most recent call last): File "/usr/lib/python3.6/tokenize.py", line 390, in find_cookie
line_string = line.decode('utf-8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfa in position 9: invalid start byte
pylint.exceptions.InvalidMessageError: Message E0001 must provide line, got None
To make it clear for other users I sum up the solution:
The ./*
symbol is not needed. It looks like Pylint is unable to parse your command properly. if you want to run Pylint on the entire folder use the folder name. e.g:
pylint --rcfile=.pylintrc <file1_name> <file2_name>
if for a specific file use the file name (Relative path)
pylint --rcfile=.pylintrc <dir_name>