gecko-dev/python/mozlint/test
Andrew Halberstadt 9a082a086c Bug 1288432 - [mozlint] Use yaml for lint definitions and separate implementation of external linters, r=bc
Rather than using .lint.py files that contain a LINTER object, linter definitions are now in
standalone .yml files. In the case of external linters that need to run python code, the payload
is now of the form:
<module path>:<object path>

The <module path> is the import path to the module, and <object path> is the callable object to
use within that module. It is up to the consumer of mozlint to ensure the <module path> lives on
sys.path. For example, if an external lint's function lives in package 'foo', file 'bar.py' and
function 'lint', the payload would read:
foo.bar:lint

This mechanism was borrowed from taskcluster.

MozReview-Commit-ID: AIsfbVmozy4

--HG--
rename : python/mozlint/test/linters/badreturncode.lint.py => python/mozlint/test/linters/badreturncode.yml
rename : python/mozlint/test/linters/explicit_path.lint.py => python/mozlint/test/linters/explicit_path.yml
rename : python/mozlint/test/linters/external.lint.py => python/mozlint/test/linters/external.yml
rename : python/mozlint/test/linters/invalid_exclude.lint.py => python/mozlint/test/linters/invalid_exclude.yml
rename : python/mozlint/test/linters/invalid_extension.lnt => python/mozlint/test/linters/invalid_extension.ym
rename : python/mozlint/test/linters/invalid_include.lint.py => python/mozlint/test/linters/invalid_include.yml
rename : python/mozlint/test/linters/invalid_type.lint.py => python/mozlint/test/linters/invalid_type.yml
rename : python/mozlint/test/linters/missing_attrs.lint.py => python/mozlint/test/linters/missing_attrs.yml
rename : python/mozlint/test/linters/missing_definition.lint.py => python/mozlint/test/linters/missing_definition.yml
rename : python/mozlint/test/linters/raises.lint.py => python/mozlint/test/linters/raises.yml
rename : python/mozlint/test/linters/regex.lint.py => python/mozlint/test/linters/regex.yml
rename : python/mozlint/test/linters/string.lint.py => python/mozlint/test/linters/string.yml
rename : python/mozlint/test/linters/structured.lint.py => python/mozlint/test/linters/structured.yml
extra : rebase_source : bda3926712234123355c5af71c6453ce869b19fc
2017-06-02 09:49:26 -04:00
..
files Bug 1288425 - Make sure we skip invalid extensions when linting with --rev or --workdir, r=smacleod 2016-08-09 16:24:04 -04:00
linters Bug 1288432 - [mozlint] Use yaml for lint definitions and separate implementation of external linters, r=bc 2017-06-02 09:49:26 -04:00
__init__.py
conftest.py Bug 1288432 - [mozlint] Use yaml for lint definitions and separate implementation of external linters, r=bc 2017-06-02 09:49:26 -04:00
python.ini Bug 1340162 - Add task for running mozlint unitttests on Linux (and pull old tests out of make check), r=smacleod 2017-02-02 11:08:41 -05:00
test_formatters.py Bug 1302172 - [mozlint] Convert unittest tests to use pytest instead, r=maja_zf 2016-09-09 16:20:09 -04:00
test_parser.py Bug 1288432 - [mozlint] Use yaml for lint definitions and separate implementation of external linters, r=bc 2017-06-02 09:49:26 -04:00
test_roller.py Bug 1288432 - [mozlint] Use yaml for lint definitions and separate implementation of external linters, r=bc 2017-06-02 09:49:26 -04:00
test_types.py Bug 1288432 - [mozlint] Use yaml for lint definitions and separate implementation of external linters, r=bc 2017-06-02 09:49:26 -04:00