Bug 1898558 - Switch the license linter to use an exclusion list for tests that is defined in the yaml rather than in the linter itself. r=linter-reviewers,sylvestre

Differential Revision: https://phabricator.services.mozilla.com/D211408
This commit is contained in:
Mark Banner 2024-05-24 11:20:04 +00:00
Родитель 9d10cbe38b
Коммит c971124bbe
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -65,6 +65,14 @@ license:
- toolkit/components/uniffi-bindgen-gecko-js/src/templates/js
# By design
- tools/lint/test/
# TODO: Bug 1713577 - Enable the linter on all tests.
- '**/test*'
- '**/gtest/'
- '**/crashtest*'
- '**/mochitest*'
- '**/reftest*'
- '**/androidTest/'
- '**/jit-test/'
extensions:
- .c
- .cc

Просмотреть файл

@ -229,10 +229,6 @@ def lint(paths, config, fix=None, **lintargs):
licenses = load_valid_license()
for f in files:
if is_test(f):
# For now, do not do anything with test (too many)
continue
if not is_valid_license(licenses, f):
if fix and fix_me(log, f):
fixed += 1