gecko-dev/tools/lint
Andrew Halberstadt ed73940aa9 Bug 1288425 - Make sure we skip invalid extensions when linting with --rev or --workdir, r=smacleod
Some linters, such as flake8, will lint invalid file extensions if you explicitly pass them in. E.g,
|flake8 foobar.js| will result in flake8 attempting to lint a JS file. This is a problem because passing
in files explicitly is exactly what the --rev/--workdir options do. If a developer modifies a JS file
then runs |mach lint -l flake8 -w|, that JS file will get linted.

To prevent this, mozlint needs to handle file extensions instead of relying on the underlying linter to
do it. This patch adds an "extensions" config option to the LINTER dict, and will filter these files out
as part of the 'filterpaths' steps.

MozReview-Commit-ID: KYhC6SEySC3

--HG--
extra : rebase_source : 6fea2942b2db1bea7deca1d6738546362b6ebd65
2016-08-09 16:24:04 -04:00
..
docs Bug 1288425 - Make sure we skip invalid extensions when linting with --rev or --workdir, r=smacleod 2016-08-09 16:24:04 -04:00
eslint NO BUG - Reconcile eslint Sphinx docs index with reality 2016-08-16 16:37:51 -07:00
eslint-formatter.js
flake8.lint Bug 1288425 - Make sure we skip invalid extensions when linting with --rev or --workdir, r=smacleod 2016-08-09 16:24:04 -04:00
mach_commands.py Bug 1291910 - Add ability for mach eslint to accept --fix. r=Felipe 2016-08-03 19:18:55 -04:00
wpt.lint Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00