forked from mirrors/gecko-dev
Bug 1678314 - Add instructions to run mach lint to the contributors' quick reference. r=sylvestre,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D97585
This commit is contained in:
parent
4a5fc87a13
commit
0077ffa9ac
1 changed files with 13 additions and 0 deletions
|
|
@ -131,6 +131,19 @@ To visualize your patch in the repository, run:
|
|||
|
||||
:ref:`More information <Mercurial Overview>`
|
||||
|
||||
To make sure the change follows the coding style
|
||||
------------------------------------------------
|
||||
|
||||
To detect coding style violations, use mach lint:
|
||||
|
||||
.. code-block:: shell
|
||||
|
||||
$ ./mach lint path/to/the/file/or/directory/you/changed
|
||||
|
||||
# To get the autofix, add --fix:
|
||||
$ ./mach lint path/to/the/file/or/directory/you/changed --fix
|
||||
|
||||
:ref:`More information <Code quality>`
|
||||
|
||||
To test a change locally
|
||||
------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue