summaryrefslogtreecommitdiffstats
path: root/docs/code-quality/lint/linters/test-manifest-toml.rst
blob: 1060b2756b8db126237969f2832163a76cad216e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Test Manifest TOML
==================

This linter verifies syntax for ManifestParser TOML files.

Run Locally
-----------

This mozlint linter can be run using mach:

.. parsed-literal::

    $ mach lint --linter test-manifest-toml <file paths>


Configuration
-------------

The configuration excludes all non-ManifestParser TOML files (as well as
generated TOML manifests).

Sources
-------

* `Configuration (YAML) <https://searchfox.org/mozilla-central/source/tools/lint/test-manifest-toml.yml>`_
* `Source <https://searchfox.org/mozilla-central/source/tools/lint/test-manifest-toml/__init__.py>`_

Errors Detected
---------------
* Invalid TOML
* Missing DEFAULT section (fixable)
* Sections not in alphabetical order (fixable)
* Section name not double quoted (fixable)
* Disabling a path by commenting out the section
* Conditional contains explicit ||