htmlreport: Also check "cppcheck-htmlreport" with pylint on Travis (#2326)

The error that pylint does not find HtmlFormatter in pygments.formatters
is known and the common solution is to suppress this error.
See https://github.com/PyCQA/pylint/issues/491
This commit is contained in:
Sebastian 2019-11-04 15:44:13 +01:00 committed by amai2012
parent afe59531c7
commit 61286392d9
2 changed files with 3 additions and 1 deletions

View File

@ -100,9 +100,11 @@ matrix:
- python3 -m compileall ./addons - python3 -m compileall ./addons
# run pylint # run pylint
- pylint --rcfile=pylintrc_travis addons/*.py - pylint --rcfile=pylintrc_travis addons/*.py
- pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport
- pylint --rcfile=pylintrc_travis htmlreport/*.py - pylint --rcfile=pylintrc_travis htmlreport/*.py
- pylint --rcfile=pylintrc_travis --ignore=donate-cpu-server.py tools/*.py - pylint --rcfile=pylintrc_travis --ignore=donate-cpu-server.py tools/*.py
- python3 -m pylint --rcfile=pylintrc_travis addons/*.py - python3 -m pylint --rcfile=pylintrc_travis addons/*.py
- python3 -m pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport
- python3 -m pylint --rcfile=pylintrc_travis htmlreport/*.py - python3 -m pylint --rcfile=pylintrc_travis htmlreport/*.py
- python3 -m pylint --rcfile=pylintrc_travis tools/*.py - python3 -m pylint --rcfile=pylintrc_travis tools/*.py
# check python syntax by compiling some selected scripts # check python syntax by compiling some selected scripts

View File

@ -11,7 +11,7 @@ import operator
from collections import Counter from collections import Counter
from pygments import highlight from pygments import highlight
from pygments.lexers import guess_lexer, guess_lexer_for_filename from pygments.lexers import guess_lexer, guess_lexer_for_filename
from pygments.formatters import HtmlFormatter from pygments.formatters import HtmlFormatter # pylint: disable=no-name-in-module
from pygments.util import ClassNotFound from pygments.util import ClassNotFound
from xml.sax import parse as xml_parse from xml.sax import parse as xml_parse
from xml.sax import SAXParseException as XmlParseException from xml.sax import SAXParseException as XmlParseException