Skip to content

Commit 6128639

Browse files
versatamai2012
authored andcommitted
htmlreport: Also check "cppcheck-htmlreport" with pylint on Travis (cppcheck-opensource#2326)
The error that pylint does not find HtmlFormatter in pygments.formatters is known and the common solution is to suppress this error. See pylint-dev/pylint#491
1 parent afe5953 commit 6128639

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ matrix:
100100
- python3 -m compileall ./addons
101101
# run pylint
102102
- pylint --rcfile=pylintrc_travis addons/*.py
103+
- pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport
103104
- pylint --rcfile=pylintrc_travis htmlreport/*.py
104105
- pylint --rcfile=pylintrc_travis --ignore=donate-cpu-server.py tools/*.py
105106
- python3 -m pylint --rcfile=pylintrc_travis addons/*.py
107+
- python3 -m pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport
106108
- python3 -m pylint --rcfile=pylintrc_travis htmlreport/*.py
107109
- python3 -m pylint --rcfile=pylintrc_travis tools/*.py
108110
# check python syntax by compiling some selected scripts

htmlreport/cppcheck-htmlreport

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import operator
1111
from collections import Counter
1212
from pygments import highlight
1313
from pygments.lexers import guess_lexer, guess_lexer_for_filename
14-
from pygments.formatters import HtmlFormatter
14+
from pygments.formatters import HtmlFormatter # pylint: disable=no-name-in-module
1515
from pygments.util import ClassNotFound
1616
from xml.sax import parse as xml_parse
1717
from xml.sax import SAXParseException as XmlParseException

0 commit comments

Comments
 (0)