mozlint.formatters package¶
Submodules¶
mozlint.formatters.compact module¶
mozlint.formatters.stylish module¶
- class mozlint.formatters.stylish.StylishFormatter(disable_colors=False)¶
Bases:
object
Formatter based on the eslint default.
- color(color)¶
- fmt = ' {c1}{lineno}{column} {c2}{level}{normal} {message} {c1}{rule}({linter}){normal}\n{diff}'¶
- fmt_summary = '{t.bold}{c}✖ {problem} ({error}, {warning}{failure}, {fixed}){t.normal}'¶
mozlint.formatters.summary module¶
- class mozlint.formatters.summary.SummaryFormatter(depth=None)¶
Bases:
object
mozlint.formatters.treeherder module¶
- class mozlint.formatters.treeherder.TreeherderFormatter¶
Bases:
object
Formatter for treeherder friendly output.
This formatter looks ugly, but prints output such that treeherder is able to highlight the errors and warnings. This is a stop-gap until bug 1276486 is fixed.
- fmt = 'TEST-UNEXPECTED-{level} | {path}:{lineno}{column} | {message} ({rule})'¶