When pylint is run with --report option on CI and pylint produces no
output, then the Jenkins parsing plugin errors out because it needs at
least an EOL to be present in the report file.
This change checks if the report file is empty and recreates it with an
EOL.
Fixesbrave/brave-browser#17351
Only install on Windows where python3 from depot_tools is used.
On Linux/MacOS we leave it up to the user to install pylint on their
system.
Fixesbrave/brave-browser#16415
* Converts npm run pylint command to use js.
Currently `npm run pylint` triggers a shell script to run pylint.
This a) doesn't work on windows b) doesn't use correct path to pylint
because depot_tools isn't in the PATH.
This change adds the same functionality that the shell script provides
to our js scripts. It also adds depot_tools/python2-bin and python2-bin
to the PATH as recommended by Chromium.
* Modifies pylint script to work with folders.
Version of pylint that comes with depot_tools doesn't process
directories unless they have __init__.py file. To get around
this limitation we need to find all python files ourselves and
pass them to pylint.
This needs to accout for command line lenth limitation on Windows.
Also use different config files for python2 and python3.
* Added pylint resource file for python2
* Modified .pylint2rc the same as .pylintrc
* Ensure depot_tools is in the path when invoking pylint.
* TEMP: pylint testing.
* Update Jenkinsfile
* Update bump-version.py
* Update Jenkinsfile
Co-authored-by: Mihai PLESA <mplesa@brave.com>