gecko-dev/tools/lint
Andrew Halberstadt fbede0d83d Bug 1361972 - Add a pre-push and pre-commit mozlint hooks r=standard8
This adds pre-push and pre-commit hooks for both hg and git. All
four possibilities are implemented in the same file.

To enable a pre-push hg hook, add the following to hgrc:

    [hooks]
    pre-push.lint = python:/path/to/gecko/tools/lint/hooks.py:hg


To enable a pre-commit hg hook, add the following to hgrc:

    [hooks]
    pretxncommit.lint = python:/path/to/gecko/tools/lint/hooks.py:hg


To enable a pre-push git hook, run the following command:

    $ ln -s /path/to/gecko/tools/lint/hooks.py .git/hooks/pre-push


To enable a pre-commit git hook, run the following command:

    $ ln -s /path/to/gecko/tools/lint/hooks.py .git/hooks/pre-commit


MozReview-Commit-ID: DUxCKN2fiag

--HG--
extra : rebase_source : 67c97a3fd8adc50d6bb3c488345077065b63de7d
2017-06-30 18:29:42 -07:00
..
docs Bug 1361972 - Add a pre-push and pre-commit mozlint hooks r=standard8 2017-06-30 18:29:42 -07:00
eslint Bug 1351608 - Add eslint-plugin-no-unsanitized to eslint-plugin-mozilla r=Standard8. 2017-07-03 20:07:00 +01:00
flake8_ Bug 1373294 - Update flake8 used to version 3.3.0, r=jmaher 2017-06-15 12:12:48 -04:00
tox Bug 1302773 - Install tox in docker image in MozReview; r=dustin 2017-05-13 02:31:37 +05:30
wpt Bug 1288432 - Use new mozlint configuration for wpt and wpt_manifest linters, r=jgraham 2017-06-02 09:48:07 -04:00
eslint.yml Bug 1288432 - Use new mozlint configuration for eslint linter, r=standard8 2017-06-02 09:48:22 -04:00
flake8.yml Bug 1375166 - [mozlint] Don't require leading '.' in extensions, r=standard8 2017-06-21 13:22:34 -04:00
hooks.py Bug 1361972 - Add a pre-push and pre-commit mozlint hooks r=standard8 2017-06-30 18:29:42 -07:00
mach_commands.py Bug 1358540 - Change the *.lint files to be *.lint.py to better support editor integration & flake8 linting. r=smacleod 2017-04-21 17:31:15 +01:00
wpt_manifest.yml Bug 1288432 - Use new mozlint configuration for wpt and wpt_manifest linters, r=jgraham 2017-06-02 09:48:07 -04:00
wpt.yml Bug 1288432 - Use new mozlint configuration for wpt and wpt_manifest linters, r=jgraham 2017-06-02 09:48:07 -04:00