tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

gecko-trace.rst (828B)


      1 Gecko Trace
      2 ===========
      3 
      4 This linter verifies if a gecko-trace file is correctly defined.
      5 
      6 Run Locally
      7 -----------
      8 
      9 This mozlint linter can be run using mach:
     10 
     11 .. parsed-literal::
     12 
     13    $ mach lint --linter gecko-trace <file paths>
     14 
     15 It will check two things:
     16 * All the gecko-trace files must be listed in ``toolkit/components/gecko-trace/index.py``,
     17 * The ``toolkit/components/gecko-trace/generated-metrics.yaml`` file must be up to date.
     18 
     19 Configuration
     20 -------------
     21 
     22 This linter is enabled on the whole code base.
     23 
     24 Autofix
     25 -------
     26 
     27 This linter provides a ``--fix`` option for the ``generated-metrics.yaml`` file.
     28 
     29 Sources
     30 -------
     31 
     32 * `Configuration (YAML) <https://searchfox.org/mozilla-central/source/tools/lint/gecko-trace.yml>`_
     33 * `Source <https://searchfox.org/mozilla-central/source/tools/lint/gecko-trace/__init__.py>`_