Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  mozlint.yml   Sprache: unbekannt

 
Haftungsausschluß.yml KontaktUnknown {[0] [0] [0]}diese Dinge liegen außhalb unserer Verantwortung

# 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
            - type: file
              name: public/profile_resource-usage.json
              path: /builds/worker/profile_resource-usage.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'


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: text(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'

eslint:
    description: JS lint check
    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
    treeherder:
        symbol: js(TSC)
        tier: 3
    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` for these since we know there's no jsx files in
            # these directories.
            - 'browser/components/places/**/*.*js'
            - 'browser/components/places/**/*.ts'
            - 'browser/components/search/**/*.*js'
            - 'browser/components/search/**/*.ts'
            - 'browser/components/urlbar/**/*.*js'
            - 'browser/components/urlbar/**/*.ts'
            - 'toolkit/components/places/**/*.*js'
            - 'toolkit/components/places/**/*.ts'
            - 'toolkit/components/search/**/*.*js'
            - 'toolkit/components/search/**/*.ts'
            # Support Files
            - 'tools/@types/**'
            - 'tools/lint/typescript.yml'
            - 'tools/lint/typescript/**'
    fetches:
        toolchain:
            - linux64-node
            - node-modules

license:
    description: Check for license blocks in source files.
    treeherder:
        symbol: pedantic(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'
            - '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: misc(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
    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'

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:
    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/**'


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/**'

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'

rst:
    description: rst lint run over the gecko codebase
    treeherder:
        symbol: doc(rst)
    run:
        mach: lint -v -l rst -f treeherder -f json:/builds/worker/mozlint.json .
    when:
        files-changed:
            - '**/*.rst'
            - 'tools/lint/rst.yml'

rumdl:
    description: rumdl Markdown linter run over the gecko codebase
    treeherder:
        symbol: doc(rumdl)
        # Allow follow-ups for Markdown style issues rather than backing patches out.
        tier: 2
    run:
        mach: lint -v -l rumdl -f treeherder -f json:/builds/worker/mozlint.json .
    when:
        files-changed:
            - '**/*.md'
            - 'tools/lint/rumdl.yml'
            - 'tools/lint/rumdl.toml'
            - 'tools/lint/python/rumdl.py'

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
    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
    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'
    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/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-rust

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: <decision>}
        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/**'
            - 'tools/lint/perfdocs.yml'
            - '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/**'


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/**'

android-expired-strings:
    description: Check for references to Android strings marked for removal
    treeherder:
        symbol: android(expired-strings)
    run:
        mach: lint -v -l android-expired-strings -f treeherder -f json:/builds/worker/mozlint.json .
    when:
        files-changed:
            - 'mobile/android/**/*.kt'
            - 'mobile/android/**/*.java'
            - 'mobile/android/**/*.xml'
            - 'tools/lint/android-expired-strings.yml'
            - 'tools/lint/android-expired-strings/**'

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'

[Dauer der Verarbeitung: 0.19 Sekunden, vorverarbeitet 2026-08-26]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=655579