# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. --- task-defaults: always-target: true attributes: code-review: true treeherder: kind: test tier: 1 platform: lint/opt worker-type: t-linux-docker-amd worker: docker-image: {in-tree: "lint"} max-run-time: 1800 artifacts: - type: file name: public/code-review/mozlint.json path: /builds/worker/mozlint.json run: using: mach use-caches: [checkout, pip, uv] when: files-changed: # Other misc lint related files. - 'python/mozlint/**' - 'tools/lint/**' codespell: description: Checks for misspellings in text files treeherder: symbol: text(spell) # We don't want patches to be backed out because of a typo, a follow up bug will be # good enough tier: 2 run: mach: lint -v -l codespell -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.js' - '**/*.jsx' - '**/*.mjs' - '**/*.xml' - '**/*.html' - '**/*.xhtml' - '**/*.cpp' - '**/*.c' - '**/*.h' - '**/*.configure' - '**/*.py' - '**/*.properties' - '**/*.rst' - '**/*.ftl' - 'tools/lint/codespell.yml' - 'python/sites/lint.txt' rejected-words: description: Reject some words we don't want to use in the code base treeherder: symbol: text(rejected-words) # We don't want patches to be backed out because of this, a follow up bug will be # good enough tier: 2 run: mach: lint -v -l rejected-words -f treeherder -f json:/builds/worker/mozlint.json . fetches: toolchain: - linux64-mozcheck when: files-changed: - '**/*.js' - '**/*.jsx' - '**/*.mjs' - '**/*.xml' - '**/*.html' - '**/*.xhtml' - '**/*.cpp' - '**/*.c' - '**/*.h' - '**/*.idl' - '**/*.webidl' - '**/*.configure' - '**/*.py' - '**/*.properties' - '**/*.rst' - '**/*.ftl' - '**/*.java' - '**/*.kt' - '**/*.rs' - 'tools/lint/rejected-words.yml' dot-mozilla-reference: description: Give visibility to misuse of ".mozilla" being hardcoded and thus breaking XDG support treeherder: symbol: misc(dot-mozilla-reference) # We don't want patches to be backed out because of this, a follow up bug will be # good enough tier: 2 run: mach: lint -v -l dot-mozilla-reference -f treeherder -f json:/builds/worker/mozlint.json . fetches: toolchain: - linux64-mozcheck when: files-changed: - '**/*.js' - '**/*.jsx' - '**/*.mjs' - '**/*.cpp' - '**/*.c' - '**/*.h' - '**/*.configure' - '**/*.py' - '**/*.properties' - '**/*.yml' - '**/*.yaml' - '**/*.java' - '**/*.kt' - '**/*.rs' - 'tools/lint/dot-mozilla-reference.yml' uri-setspec: description: Reject nsIURIMutator.setSpec callers outside of necko URI construction treeherder: symbol: misc(uri-setspec) run: mach: lint -v -l uri-setspec -f treeherder -f json:/builds/worker/mozlint.json . fetches: toolchain: - linux64-mozcheck when: files-changed: - '**/*.cpp' - '**/*.h' - '**/*.idl' - '**/*.js' - '**/*.mjs' - '**/*.jsx' - '**/*.html' - '**/*.xhtml' - '**/*.m' - '**/*.mm' - 'tools/lint/uri-setspec.yml' ipdl-uriparams: description: Reject new uses of URIParams in IPDL in favor of nsIURI treeherder: symbol: misc(ipdl-uriparams) run: mach: lint -v -l ipdl-uriparams -f treeherder -f json:/builds/worker/mozlint.json . fetches: toolchain: - linux64-mozcheck when: files-changed: - '**/*.ipdl' - '**/*.ipdlh' - 'tools/lint/ipdl-uriparams.yml' eslint: description: JS lint check # Review bot waits for every lint, and this one finishes last more often # than any other. It parallelizes well, so a 30 core worker shortens the end # to end time. worker-type: b-linux-docker-large-amd treeherder: symbol: js(ES) run: using: run-task cwd: '{checkout}' use-caches: [checkout, pip, uv, npm] command: > cp -r $MOZ_FETCHES_DIR/node_modules node_modules && ln -s ../tools/lint/eslint/eslint-plugin-mozilla node_modules && ln -s ../tools/lint/eslint/eslint-plugin-spidermonkey-js node_modules && ./mach lint -v -l eslint -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: # Files that are likely audited. - '**/*.js' - '**/*.json' - '**/*.jsx' - '**/*.mjs' - '**/*.sjs' - '**/*.html' - '**/*.xhtml' - '**/*.ts' - 'tools/lint/eslint.yml' # Run when eslint or prettier policies change. - '**/*eslintrc*' - '.prettier*' # The plugin implementing custom checks. - 'tools/lint/eslint/eslint-plugin-mozilla/**' - 'tools/lint/eslint/eslint-plugin-spidermonkey-js/**' fetches: toolchain: - linux64-node - node-modules eslint-build: description: ESLint checks with build data always-target: false # Triggered by cron task, don't run on any projects and disable optimization. run-on-projects: [] when: null attributes: code-review: false treeherder: symbol: js(ES-B) tier: 2 run: using: run-task cwd: '{checkout}' use-caches: [checkout, pip, uv, npm] command: > export MOZ_XPT_ARTIFACTS_DIR="$MOZ_FETCHES_DIR/$MOZ_XPT_ARTIFACTS_DIRNAME" && find "$MOZ_XPT_ARTIFACTS_DIR" && cp -r $MOZ_FETCHES_DIR/node_modules node_modules && ln -s ../tools/lint/eslint/eslint-plugin-mozilla node_modules && ln -s ../tools/lint/eslint/eslint-plugin-spidermonkey-js node_modules && ./mach lint -v -l eslint -f treeherder --quiet -f json:/builds/worker/mozlint.json . --rule "mozilla/valid-services-property: error" --rule "mozilla/valid-ci-uses: error" worker: env: MOZ_XPT_ARTIFACTS_DIRNAME: xpt_artifacts require-build: .*: build-linux64/opt fetches: build: - artifact: target.xpt_artifacts.zip dest: xpt_artifacts toolchain: - linux64-node - node-modules stylelint: description: CSS lint check treeherder: symbol: stylelint run: using: run-task cwd: '{checkout}' command: > cp -r $MOZ_FETCHES_DIR/node_modules node_modules && ln -s ../tools/lint/eslint/eslint-plugin-mozilla node_modules && ln -s ../tools/lint/eslint/eslint-plugin-spidermonkey-js node_modules && ./mach lint -v -l stylelint -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: # Files that are likely audited. - '**/*.css' - 'tools/lint/styleint.yml' # Run when stylelint policies change. - '**/.stylelintignore' - '**/*stylelintrc*' # Run when installed packages change. - 'package*.json' # The plugin implementing custom checks. - 'tools/lint/stylelint/stylelint-plugin-mozilla/**' fetches: toolchain: - linux64-node - node-modules typescript: description: TypeScript checker # This check parallelizes well, so a 30 core worker more than halves its run # time for little extra cost. worker-type: b-linux-docker-large-amd treeherder: symbol: js(TSC) tier: 2 run: using: run-task cwd: '{checkout}' use-caches: [checkout, pip, uv, npm] command: > cp -r $MOZ_FETCHES_DIR/node_modules node_modules && ln -s ../tools/lint/eslint/eslint-plugin-mozilla node_modules && ln -s ../tools/lint/eslint/eslint-plugin-spidermonkey-js node_modules && ./mach lint -v -l typescript -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: # Files that are likely audited. # These should be kept in sync with the list of includes in # tools/lint/typescript.yml # Not adding `jsx` here: these directories either have no jsx files, # or, for newtab, its jsx under content-src/ is not yet included. - 'browser/components/places/**/*.*js' - 'browser/components/places/**/*.ts' - 'browser/components/search/**/*.*js' - 'browser/components/search/**/*.ts' - 'browser/components/sessionstore/**/*.*js' - 'browser/components/sessionstore/**/*.ts' - 'browser/components/tabbrowser/**/*.*js' - 'browser/components/tabbrowser/**/*.ts' - 'browser/components/urlbar/**/*.*js' - 'browser/components/urlbar/**/*.ts' - 'browser/extensions/newtab/**/*.*js' - 'browser/extensions/newtab/**/*.ts' - 'devtools/client/settings/**/*.*js' - 'devtools/client/settings/**/*.ts' - 'toolkit/components/extensions/**/*.*js' - 'toolkit/components/extensions/**/*.ts' - 'toolkit/components/places/**/*.*js' - 'toolkit/components/places/**/*.ts' - 'toolkit/components/search/**/*.*js' - 'toolkit/components/search/**/*.ts' # Support Files - '**/tsconfig.json' - 'tools/@types/**' - 'tools/lint/typescript.yml' - 'tools/lint/typescript/**' fetches: toolchain: - linux64-node - node-modules license: description: Check for license blocks in source files and lint the moz.build license declarations. treeherder: symbol: legal(license) run: mach: lint -v -l license -f treeherder -f json:/builds/worker/mozlint.json . fetches: toolchain: - linux64-mozcheck when: files-changed: - '**/*.c' - '**/*.cc' - '**/*.cpp' - '**/*.css' - '**/*.dtd' - '**/*.ftl' - '**/*.h' - '**/*.html' - '**/*.idl' - '**/*.js' - '**/*.jsx' - '**/*.kt' - '**/*.m' - '**/*.mjs' - '**/*.mm' - '**/*.properties' - '**/*.py' - '**/*.rs' - '**/*.svg' - '**/*.webidl' - '**/*.xhtml' - '**/*.xml' - '**/moz.build' - 'python/mozbuild/mozbuild/licenses.py' - 'tools/lint/license/**' - 'tools/lint/license.yml' lintpref: description: Check for duplicates between all.js and StaticPrefList.yaml. treeherder: symbol: misc(pref) run: mach: lint -v -l lintpref -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - 'modules/libpref/init/all.js' - 'modules/libpref/init/StaticPrefList.yaml' - 'browser/app/profile/firefox.js' - 'devtools/client/preferences/debugger.js' - 'mobile/android/app/geckoview-prefs.js' - 'browser/branding/official/pref/firefox-branding.js' - 'browser/branding/nightly/pref/firefox-branding.js' - 'browser/branding/unofficial/pref/firefox-branding.js' - 'browser/branding/aurora/pref/firefox-branding.js' - 'browser/app/profile/channel-prefs.js' - 'tools/lint/lintpref.yml' node-licenses: description: Lint for node licenses issues treeherder: symbol: legal(node-licenses) run: using: run-task cwd: '{checkout}' use-caches: [checkout, pip, uv, npm] command: > cp -r $MOZ_FETCHES_DIR/node_modules node_modules && ln -s ../tools/lint/eslint/eslint-plugin-mozilla node_modules && ln -s ../tools/lint/eslint/eslint-plugin-spidermonkey-js node_modules && cp -r $MOZ_FETCHES_DIR/eslint-plugin-mozilla/node_modules tools/lint/eslint/eslint-plugin-mozilla/node_modules && cp -r $MOZ_FETCHES_DIR/stylelint-plugin-mozilla/node_modules tools/lint/stylelint/stylelint-plugin-mozilla/node_modules && cp -r $MOZ_FETCHES_DIR/terser/node_modules tools/terser/node_modules && ./mach lint -v -l node-licenses -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - 'tools/lint/node-licenses.yml' - 'tools/lint/node-licenses/**.py' # When we cover most package.json files, then we should enable this # generally, for now cover just what we need. # - '**/package.json' - package.json - tools/lint/eslint/eslint-plugin-mozilla/package.json - tools/lint/stylelint/stylelint-plugin-mozilla/package.json - tools/terser/package.json - third_party/node/** fetches: toolchain: - linux64-node - node-modules - eslint-plugin-mozilla - stylelint-plugin-mozilla - terser node-package-names: description: Lint for node package name issues treeherder: symbol: misc(npn) run: mach: lint -v -l node-package-names -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/package.json' - 'tools/lint/node-package-names.yml' mingw-cap: description: lint for MinGW Capitalization issues treeherder: symbol: misc(mingw) run: mach: lint -v -l mingw-capitalization -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.cpp' - '**/*.cc' - '**/*.c' - '**/*.h' - 'tools/lint/mingw-capitalization.yml' updatebot: description: Ensure moz.yaml files are valid per schema treeherder: symbol: misc(mozyaml) run: mach: lint -v -l updatebot -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/moz.yaml' mscom-init: description: Lint for Microsoft COM initialization treeherder: symbol: misc(mscom) run: mach: lint -v -l mscom-init -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.cpp' - '**/*.cc' - '**/*.c' - '**/*.h' - '**/*.rs' - 'tools/lint/mscom-init.yml' py-ruff-format: description: ruff format run over the gecko codebase treeherder: symbol: py(ruff-format) run: mach: lint -v -l ruff-format -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: # The list of extensions should match tools/lint/ruff-format.yml - '**/*.py' - '**/moz.build' - '**/*.configure' - '**/*.mozbuild' - 'pyproject.toml' - 'tools/lint/ruff-format.yml' - 'tools/lint/python/ruff.py' - 'python/sites/lint.txt' py-ruff: description: Run ruff over the gecko codebase treeherder: symbol: py(ruff) run: mach: lint -v -l ruff -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.py' - '**/*.configure' - '**/.ruff.toml' - 'pyproject.toml' - 'tools/lint/ruff.yml' - 'tools/lint/python/ruff.py' - 'python/sites/lint.txt' python-sites: description: Lint for python sites treeherder: symbol: misc(pysites) run: mach: lint -v -l python-sites -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - 'python/sites/**' extra-js-modules: description: Prevent new files from being added to EXTRA_JS_MODULES treeherder: symbol: js(js-extra-modules) run: mach: lint -v -l extra-js-modules -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/moz.build' - 'tools/lint/extra-js-modules.yml' - 'tools/lint/extra-js-modules/**' spidermonkey: description: "SpiderMonkey #include style, MacroAssembler and bytecode doc checks" treeherder: symbol: js(SM) run: mach: lint -v -l spidermonkey -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - 'intl/components/**/*.h' - 'js/public/**' - 'js/src/**' - 'memory/mozalloc/**/*.h' - 'mfbt/**/*.h' - 'mozglue/**/*.h' - 'tools/lint/spidermonkey.yml' - 'tools/lint/spidermonkey/**' test-manifest: description: lint test manifests treeherder: symbol: tests(test-manifest) run: mach: lint -v -l test-manifest-toml -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.toml' - 'python/mozlint/**' - 'tools/lint/test/files/test_manifest_toml/**' - 'tools/lint/test/test_manifest_toml.py' - 'tools/lint/test-manifest-toml/**' review-context-toml: description: Validate review-context.toml against the review context schema treeherder: symbol: misc(review-context) run: mach: lint -v -l review-context-toml -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - 'review-context.toml' - 'tools/lint/review-context-toml.yml' - 'tools/lint/python/review_context_schema.py' - 'tools/lint/python/review_context_toml.py' wptlint-gecko: description: web-platform-tests linter treeherder: symbol: tests(web-platform) run: mach: lint -v -l wpt -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - 'testing/web-platform/tests/**' - 'testing/web-platform/mozilla/tests/**' - 'tools/lint/wpt.yml' wpt-subsuite-tagging: description: Checks WPT tests in subsuite directories have subsuite tags treeherder: symbol: tests(wpt-sub) run: mach: lint -v -l wpt-subsuite-tagging -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - 'testing/web-platform/tests/**' - 'testing/web-platform/mozilla/tests/**' - 'testing/web-platform/meta/**' - 'testing/web-platform/mozilla/meta/**' - 'taskcluster/gecko_taskgraph/util/chunking.py' - 'tools/lint/wpt-subsuite-tagging/**' - 'tools/lint/wpt-subsuite-tagging.yml' yaml: description: yamllint run over the gecko codebase treeherder: symbol: pedantic(yaml) run: mach: lint -v -l yaml -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.yml' - '**/*.yaml' - '**/.ymllint' md: description: Markdown linters run over the gecko codebase treeherder: symbol: doc(md) # Allow follow-ups for Markdown style issues rather than backing patches out. tier: 2 run: mach: lint -v -l md -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.md' - 'tools/lint/md.yml' - 'tools/lint/rumdl.toml' - 'tools/lint/python/rumdl.py' - 'python/sites/lint.txt' shellcheck: description: shellcheck run over the gecko codebase treeherder: symbol: misc(shell) run: mach: lint -v -l shellcheck -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.sh' - 'tools/lint/shellcheck.yml' localization: description: l10n tests for strings with errors treeherder: symbol: l10n(l1nt) run: mach: lint -v -l l10n -f treeherder * attributes: code-review: false when: files-changed: - '**/locales/en-US/**' - '**/l10n.toml' - 'third_party/python/compare-locales/**' - 'third_party/python/fluent/**' - 'tools/lint/l10n.yml' l10n-conflicts: description: l10n tests for strings with errors and conflicts with firefox-l10n-source treeherder: symbol: l10n(l1nt-conflicts) always-target: false run-on-projects: [] run: mach: lint -W -l l10n -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/locales/en-US/**' - '**/l10n.toml' - 'third_party/python/compare-locales/**' - 'third_party/python/fluent/**' - 'tools/lint/l10n.yml' clang-format: description: clang-format on the C/C++ code # Review bot waits for every lint, and this one is among the slowest on C++ # pushes. It parallelizes well, so a 30 core worker shortens the end to end # time. worker-type: b-linux-docker-large-amd treeherder: symbol: cpp(clang-format) run: mach: lint -v -l clang-format -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.cpp' - '**/*.c' - '**/*.cc' - '**/*.h' - '**/*.m' - '**/*.mm' - 'tools/lint/clang-format.yml' dependencies: linux64-clang-tidy: toolchain-linux64-clang-tidy fetches: linux64-clang-tidy: - artifact: clang-tidy.tar.zst dest: clang-tools rustfmt: description: rustfmt on the Rust code treeherder: symbol: rust(rustfmt) run: mach: lint -v -l rustfmt -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.rs' - 'tools/lint/rustfmt.yml' fetches: toolchain: - linux64-rust clippy: description: clippy on the Rust code # Review bot waits for every lint, and this one is in the long tail of the # slowest. A 30 core worker shortens it, which shortens the end to end time. worker-type: b-linux-docker-large-amd treeherder: symbol: rust(clippy) run: prepend-env: PATH: "$MOZ_FETCHES_DIR/rustc/bin/${PATH:+:$PATH}" mach: lint -v -l clippy -f treeherder -f json:/builds/worker/mozlint.json -j 1 . when: files-changed: - '**/*.rs' - '**/Cargo.toml' - 'tools/lint/clippy.yml' - 'build/cargo/cargo-clippy.yaml' fetches: toolchain: - linux64-clang - linux64-rust - linux64-rust-size - linux64-cbindgen - linux64-dump_syms - linux64-sccache - linux64-nasm - linux64-node - linux64-pkgconf - sysroot-x86_64-linux-gnu - sysroot-wasm32-wasi cargo-audit: description: Audit cargo lock files for vulnerable dependencies treeherder: symbol: rust(cargo-audit) run: prepend-env: PATH: "$MOZ_FETCHES_DIR/cargo-audit/:$MOZ_FETCHES_DIR/rustc/bin/:/builds/worker/.cargo/bin/${PATH:+:$PATH}" mach: lint -v --warnings=soft -l cargo-audit -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - 'Cargo.lock' fetches: toolchain: - linux64-cargo-audit - linux64-rust pnpm-audit: description: Audit the vendored node packages for vulnerable dependencies treeherder: symbol: node(pnpm-audit) run: mach: lint -v --warnings=soft -l pnpm-audit -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - 'third_party/node/pnpm-lock.yaml' - 'tools/lint/pnpm-audit.yml' - 'tools/lint/pnpm-audit/**' fetches: toolchain: - linux64-node fetch: - pnpm mozcheck-tests: description: mozcheck Rust unit tests treeherder: symbol: rust(mozcheck) run: using: run-task cwd: '{checkout}' command: >- PATH="$MOZ_FETCHES_DIR/rustc/bin:$PATH" cargo test --locked --verbose --manifest-path tools/lint/mozcheck/Cargo.toml when: files-changed: - 'tools/lint/mozcheck/**' fetches: toolchain: - linux64-rust file-whitespace: description: Check for trailing whitespaces and Windows CR platform: lint/opt treeherder: symbol: pedantic(file-whitespace) # We don't want patches to be backed out because of this, a follow up bug will be # good enough tier: 2 run: mach: lint -v -l file-whitespace -f treeherder -f json:/builds/worker/mozlint.json . fetches: toolchain: - linux64-mozcheck when: files-changed: - '**/*.c' - '**/*.cc' - '**/*.cpp' - '**/*.css' - '**/*.dtd' - '**/*.idl' - '**/*.ftl' - '**/*.h' - '**/*.html' - '**/*.json' - '**/*.md' - '**/*.mn' - '**/*.properties' - '**/*.py' - '**/*.rs' - '**/*.rst' - '**/*.toml' - '**/*.webidl' - '**/*.yaml' - '**/*.yml' - '**/*.xhtml' file-perm: description: Check for incorrect permissions on source files platform: lint/opt treeherder: symbol: pedantic(file-perm) # We don't want patches to be backed out because of this, a follow up bug will be # good enough tier: 2 run: mach: lint -v -l file-perm -f treeherder -f json:/builds/worker/mozlint.json . fetches: toolchain: - linux64-mozcheck when: files-changed: - '**/*.build' - '**/*.c' - '**/*.cc' - '**/*.cpp' - '**/*.css' - '**/*.flac' - '**/*.h' - '**/*.html' - '**/*.idl' - '**/*.js' - '**/*.json' - '**/*.jsx' - '**/*.m' - '**/*.m4s' - '**/*.md' - '**/*.mjs' - '**/*.mm' - '**/*.mn' - '**/*.mozbuild' - '**/*.mp4' - '**/*.png' - '**/*.rs' - '**/*.rst' - '**/*.svg' - '**/*.toml' - '**/*.ts' - '**/*.ttf' - '**/*.wasm' - '**/*.webidl' - '**/*.xhtml' - '**/*.xml' - '**/*.yaml' - '**/*.yml' perfdocs-verify: description: Verifies Performance Testing documentation treeherder: symbol: doc(perfdocs) run: mach: perfdocs --output-file /builds/worker/mozlint.json worker: env: WORKSPACE: /builds/worker/checkouts/gecko/ DECISION_TASK_ID: {task-reference: } artifacts: - type: file name: public/perfdocs.diff path: /builds/worker/diff.txt when: files-changed: - 'devtools/perfdocs/**' - 'taskcluster/**' - '**/perftest.toml' - 'python/mozperftest/**' - 'testing/awsy/**' - 'testing/raptor/**' - 'testing/talos/**' - 'testing/performance/**' - 'testing/perfdocs/**' - 'toolkit/components/ml/tests/browser/**' - '**/*_perf.js' condprof-addons-verify: description: | Verifies all xpi files needed by condprof customization sideloading addons are included in the firefox-addons fetch task. treeherder: symbol: misc(condprof-addons) run: mach: | lint -v -l condprof-addons -f treeherder -f json:/builds/worker/mozlint.json . fetches: fetch: - firefox-addons when: files-changed: - 'testing/condprofile/condprof/customization/*.json' - 'taskcluster/ci/fetch/browsertime.yml' fluent-lint: description: Check for problems with Fluent files. platform: lint/opt treeherder: symbol: l10n(fluent) run: mach: lint --linter fluent-lint -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.ftl' - 'tools/lint/fluent-lint.yml' - 'tools/lint/fluent-lint/exclusions.yml' glean-parser: description: Lint Glean telemetry configuration files treeherder: symbol: misc(glean-parser) run: mach: lint -v -l glean-parser -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*metrics.yaml' - '**/pings.yaml' - 'tools/lint/glean-parser.yml' - 'tools/lint/glean-parser/**' trojan-source: description: Trojan Source attack - CVE-2021-42572 platform: lint/opt treeherder: symbol: misc(trojan-source) run: mach: lint -v -l trojan-source -f treeherder -f json:/builds/worker/mozlint.json . fetches: toolchain: - linux64-mozcheck when: files-changed: - '**/*.c' - '**/*.cc' - '**/*.cpp' - '**/*.h' - '**/*.py' - '**/*.rs' - 'tools/lint/trojan-source.yml' ignorefile-test: description: .gitignore vs .hgignore consistency check platform: lint/opt treeherder: symbol: ignorefile run: mach: lint -v -l ignorefile .gitignore .hgignore when: files-changed: - '.gitignore' - '.hgignore' agent-skills-sync: description: Keep .claude/skills and .agents/skills in sync platform: lint/opt treeherder: symbol: agent-skills-sync run: mach: lint -v -l agent-skills-sync -f treeherder -f json:/builds/worker/mozlint.json .claude/skills .agents/skills when: files-changed: - '.claude/skills/**' - '.agents/skills/**' - 'tools/lint/agent-skills-sync.yml' - 'tools/lint/agent-skills-sync/**' toolchain-parity: description: Ensure local-toolchain/local-fetch tasks cover all tier-1 host platforms platform: lint/opt treeherder: symbol: toolchain-parity run: mach: lint -v -l toolchain-parity -f treeherder -f json:/builds/worker/mozlint.json taskcluster/kinds/toolchain taskcluster/kinds/fetch when: files-changed: - 'taskcluster/kinds/toolchain/**' - 'taskcluster/kinds/fetch/**' - 'tools/lint/toolchain-parity.yml' - 'tools/lint/toolchain-parity/**' - 'build/moz.configure/bootstrap.configure' - 'python/mozbuild/mozbuild/configure/constants.py' c-includes: description: Remove unused mfbt includes from the codebase treeherder: symbol: cpp(includes) run: mach: lint -l includes -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.c' - '**/*.cc' - '**/*.cpp' - '**/*.cxx' - '**/*.h' - '**/*.hpp' - '**/*.m' - '**/*.mm' - 'tools/lint/includes.yml' - 'tools/lint/includes/**' - 'mfbt/api.yml' header-guards: description: Checks include header guards treeherder: symbol: cpp(guards) run: mach: lint -l header-guards -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/*.h' - '**/*.hpp' - 'tools/lint/header-guards.yml' - 'tools/lint/header_guards/**' source-headers: description: Checks source headers consistency treeherder: symbol: misc(mozbuild) run: mach: lint -l source-headers -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/moz.build' - '**/*.h' - '**/*.hh' - '**/*.hpp' - 'tools/lint/source-headers.yml' - 'tools/lint/source_headers/**' ffvpx-symbols: description: Check that FFmpegLibWrapper only binds symbols bundled ffvpx exports treeherder: symbol: misc(ffvpx-symbols) run: mach: lint -v -l ffvpx-symbols -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - 'dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp' - 'media/ffvpx/libavcodec/avcodec.symbols' - 'media/ffvpx/libavcodec/version_major.h' - 'media/ffvpx/libavutil/avutil.symbols' - 'tools/lint/ffvpx-symbols.yml' - 'tools/lint/ffvpx-symbols/**' gecko-trace: description: Check that all `gecko-trace.yaml` files are correct treeherder: symbol: misc(gecko-trace) run: mach: lint -l gecko-trace -f treeherder -f json:/builds/worker/mozlint.json . when: files-changed: - '**/gecko-trace.yaml' - '**/gecko-trace.yml'