mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
![Andrew Halberstadt](/assets/img/avatar_default.png)
This formatter is useful for triaging paths when enabling new linters or expanding existing ones. It works well with the -n/--no-filter option. For example, if I wanted to look for candidates of new directories to enable the codespell linter on, I could run: ./mach lint -l codespell -nf summary This will print something like: accessible: 429 dom: 142 layout: 15 testing: 53 etc.. If desired, you can also specify a depth by setting MOZLINT_SUMMARY_DEPTH. A depth of 2 means results will be aggregated further down, e.g: accesible/build: 129 accesible/ipc: 300 dom/indexedDB: 100 dom/workers: 42 etc.. The depth is always relative to the common path prefix of all results, so running: ./mach lint -l codespell -nf python/mozbuild Would expand all the directories under python/mozbuild (not topsrdir). MozReview-Commit-ID: OiihLTpULA --HG-- extra : rebase_source : eaaabc1d5cdc8e3942808d01b24e22081fea752e