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:
Andrey Bienkowski 2020-11-23 20:28:23 +00:00
parent 4a5fc87a13
commit 0077ffa9ac

View file

@ -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
------------------------