This for a few reasons: * The summary becomes the landing page for code quality: https://firefox-source-docs.mozilla.org/tools/static-analysis/summary.html * I don't think we need a full code quality category * Closer to the source-code-doc * All the files at the same place Differential Revision: https://phabricator.services.mozilla.com/D61767
39 lines
821 B
ReStructuredText
39 lines
821 B
ReStructuredText
File permission
|
|
===============
|
|
|
|
This linter verifies if a file has unnecessary permissions.
|
|
If a file has execution permissions (+x), file-perm will
|
|
generate a warning.
|
|
|
|
It will ignore files starting with ``#!`` (Python or node scripts).
|
|
|
|
This linter does not have any affect on Windows.
|
|
|
|
|
|
Run Locally
|
|
-----------
|
|
|
|
This mozlint linter can be run using mach:
|
|
|
|
.. parsed-literal::
|
|
|
|
$ mach lint --linter file-perm <file paths>
|
|
|
|
|
|
Configuration
|
|
-------------
|
|
|
|
This linter is enabled on the whole code base.
|
|
|
|
Autofix
|
|
-------
|
|
|
|
This linter provides a ``--fix`` option. The python script is doing the change itself.
|
|
|
|
|
|
Sources
|
|
-------
|
|
|
|
* `Configuration (YAML) <https://searchfox.org/mozilla-central/source/tools/lint/file-perm.yml>`_
|
|
* `Source <https://searchfox.org/mozilla-central/source/tools/lint/file-perm/__init__.py>`_
|