mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1757373 - Switch source task linters to use '.' rather than '*' for path matching, so that dot files are also checked. r=linter-reviewers,sylvestre
Currently dot files (e.g. .eslintrc.js) are not checked in the full run on CI. Also ignores .gradle/ directory as that it a cache. Differential Revision: https://phabricator.services.mozilla.com/D177261
This commit is contained in:
parent
0281758fe1
commit
fd41071824
@ -483,6 +483,7 @@ xpcom/io/crc32c.c
|
||||
# When this is implemented, we'll update the configuration below (bug 1825508)
|
||||
##############################################################################
|
||||
|
||||
.gradle/
|
||||
browser/components/newtab/logs/
|
||||
browser/components/newtab/node_modules/
|
||||
browser/components/storybook/storybook-static/
|
||||
|
@ -34,7 +34,7 @@ codespell:
|
||||
# good enough
|
||||
tier: 2
|
||||
run:
|
||||
mach: lint -v -l codespell -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l codespell -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.js'
|
||||
@ -63,7 +63,7 @@ rejected-words:
|
||||
# good enough
|
||||
tier: 2
|
||||
run:
|
||||
mach: lint -v -l rejected-words -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l rejected-words -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.js'
|
||||
@ -99,7 +99,7 @@ eslint:
|
||||
cp -r /build/node_modules_eslint-plugin-mozilla/ tools/lint/eslint/eslint-plugin-mozilla/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 *
|
||||
./mach lint -v -l eslint -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
# Files that are likely audited.
|
||||
@ -139,7 +139,7 @@ eslint-build:
|
||||
cp -r /build/node_modules_eslint-plugin-mozilla/ tools/lint/eslint/eslint-plugin-mozilla/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"
|
||||
./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
|
||||
@ -155,7 +155,7 @@ license:
|
||||
treeherder:
|
||||
symbol: pedantic(license)
|
||||
run:
|
||||
mach: lint -v -l license -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l license -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.c'
|
||||
@ -186,7 +186,7 @@ lintpref:
|
||||
treeherder:
|
||||
symbol: misc(pref)
|
||||
run:
|
||||
mach: lint -v -l lintpref -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l lintpref -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- 'modules/libpref/init/all.js'
|
||||
@ -209,7 +209,7 @@ mingw-cap:
|
||||
treeherder:
|
||||
symbol: misc(mingw)
|
||||
run:
|
||||
mach: lint -v -l mingw-capitalization -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l mingw-capitalization -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.cpp'
|
||||
@ -223,7 +223,7 @@ updatebot:
|
||||
treeherder:
|
||||
symbol: misc(mozyaml)
|
||||
run:
|
||||
mach: lint -v -l updatebot -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l updatebot -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/moz.yaml'
|
||||
@ -233,7 +233,7 @@ mscom-init:
|
||||
treeherder:
|
||||
symbol: misc(mscom)
|
||||
run:
|
||||
mach: lint -v -l mscom-init -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l mscom-init -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.cpp'
|
||||
@ -247,7 +247,7 @@ py-black:
|
||||
treeherder:
|
||||
symbol: py(black)
|
||||
run:
|
||||
mach: lint -v -l black -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l black -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
# The list of extensions should match tools/lint/black.yml
|
||||
@ -263,7 +263,7 @@ py-ruff:
|
||||
treeherder:
|
||||
symbol: py(ruff)
|
||||
run:
|
||||
mach: lint -v -l ruff -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l ruff -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.py'
|
||||
@ -279,7 +279,7 @@ test-manifest:
|
||||
treeherder:
|
||||
symbol: misc(tm)
|
||||
run:
|
||||
mach: lint -v -l test-manifest-alpha -l test-manifest-disable -l test-manifest-skip-if -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l test-manifest-alpha -l test-manifest-disable -l test-manifest-skip-if -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.ini'
|
||||
@ -292,7 +292,7 @@ wptlint-gecko:
|
||||
treeherder:
|
||||
symbol: misc(W)
|
||||
run:
|
||||
mach: lint -v -l wpt -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l wpt -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- 'testing/web-platform/tests/**'
|
||||
@ -304,7 +304,7 @@ yaml:
|
||||
treeherder:
|
||||
symbol: pedantic(yaml)
|
||||
run:
|
||||
mach: lint -v -l yaml -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l yaml -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.yml'
|
||||
@ -316,7 +316,7 @@ rst:
|
||||
treeherder:
|
||||
symbol: text(rst)
|
||||
run:
|
||||
mach: lint -v -l rst -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l rst -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.rst'
|
||||
@ -327,7 +327,7 @@ shellcheck:
|
||||
treeherder:
|
||||
symbol: misc(shell)
|
||||
run:
|
||||
mach: lint -v -l shellcheck -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l shellcheck -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.sh'
|
||||
@ -358,7 +358,7 @@ l10n-conflicts:
|
||||
always-target: false
|
||||
run-on-projects: []
|
||||
run:
|
||||
mach: lint -W -l l10n -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -W -l l10n -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/locales/en-US/**'
|
||||
@ -373,7 +373,7 @@ clang-format:
|
||||
treeherder:
|
||||
symbol: cpp(clang-format)
|
||||
run:
|
||||
mach: lint -v -l clang-format -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l clang-format -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.cpp'
|
||||
@ -396,7 +396,7 @@ rustfmt:
|
||||
treeherder:
|
||||
symbol: rust(rustfmt)
|
||||
run:
|
||||
mach: lint -v -l rustfmt -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l rustfmt -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.rs'
|
||||
@ -411,7 +411,7 @@ clippy:
|
||||
treeherder:
|
||||
symbol: rust(clippy)
|
||||
run:
|
||||
mach: lint -v -l clippy -f treeherder -f json:/builds/worker/mozlint.json -j 1 *
|
||||
mach: lint -v -l clippy -f treeherder -f json:/builds/worker/mozlint.json -j 1 .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.rs'
|
||||
@ -431,7 +431,7 @@ file-whitespace:
|
||||
# good enough
|
||||
tier: 2
|
||||
run:
|
||||
mach: lint -v -l file-whitespace -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l file-whitespace -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.c'
|
||||
@ -462,7 +462,7 @@ file-perm:
|
||||
# good enough
|
||||
tier: 2
|
||||
run:
|
||||
mach: lint -v -l file-perm -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l file-perm -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.build'
|
||||
@ -502,7 +502,7 @@ perfdocs-verify:
|
||||
treeherder:
|
||||
symbol: text(perfdocs)
|
||||
run:
|
||||
mach: lint -v -l perfdocs -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l perfdocs -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
worker:
|
||||
env:
|
||||
WORKSPACE: /builds/worker/checkouts/gecko/
|
||||
@ -528,7 +528,7 @@ fluent-lint:
|
||||
treeherder:
|
||||
symbol: l10n(fluent)
|
||||
run:
|
||||
mach: lint --linter fluent-lint -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint --linter fluent-lint -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.ftl'
|
||||
@ -541,7 +541,7 @@ trojan-source:
|
||||
treeherder:
|
||||
symbol: misc(trojan-source)
|
||||
run:
|
||||
mach: lint -v -l trojan-source --include-third-party -f treeherder -f json:/builds/worker/mozlint.json *
|
||||
mach: lint -v -l trojan-source --include-third-party -f treeherder -f json:/builds/worker/mozlint.json .
|
||||
when:
|
||||
files-changed:
|
||||
- '**/*.c'
|
||||
|
@ -1,3 +1,4 @@
|
||||
.gradle/
|
||||
browser/components/newtab/logs/
|
||||
browser/components/newtab/node_modules/
|
||||
browser/components/storybook/storybook-static/
|
||||
|
Loading…
Reference in New Issue
Block a user