mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
021f1ff90a
MozReview-Commit-ID: 4KK2GZK7xul --HG-- rename : python/mozlint/test/linters/badreturncode.lint => python/mozlint/test/linters/badreturncode.lint.py rename : python/mozlint/test/linters/explicit_path.lint => python/mozlint/test/linters/explicit_path.lint.py rename : python/mozlint/test/linters/external.lint => python/mozlint/test/linters/external.lint.py rename : python/mozlint/test/linters/invalid_exclude.lint => python/mozlint/test/linters/invalid_exclude.lint.py rename : python/mozlint/test/linters/invalid_include.lint => python/mozlint/test/linters/invalid_include.lint.py rename : python/mozlint/test/linters/invalid_type.lint => python/mozlint/test/linters/invalid_type.lint.py rename : python/mozlint/test/linters/missing_attrs.lint => python/mozlint/test/linters/missing_attrs.lint.py rename : python/mozlint/test/linters/missing_definition.lint => python/mozlint/test/linters/missing_definition.lint.py rename : python/mozlint/test/linters/raises.lint => python/mozlint/test/linters/raises.lint.py rename : python/mozlint/test/linters/regex.lint => python/mozlint/test/linters/regex.lint.py rename : python/mozlint/test/linters/string.lint => python/mozlint/test/linters/string.lint.py rename : python/mozlint/test/linters/structured.lint => python/mozlint/test/linters/structured.lint.py rename : tools/lint/eslint.lint => tools/lint/eslint.lint.py rename : tools/lint/flake8.lint => tools/lint/flake8.lint.py rename : tools/lint/wpt.lint => tools/lint/wpt.lint.py rename : tools/lint/wpt_manifest.lint => tools/lint/wpt_manifest.lint.py extra : rebase_source : 97de88e0328e91347192672b848b286df1904ade
29 lines
878 B
Python
29 lines
878 B
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# 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/.
|
|
|
|
import imp
|
|
import os
|
|
|
|
|
|
def lint(files, logger, **kwargs):
|
|
wpt_dir = os.path.join(kwargs["root"], "testing", "web-platform")
|
|
manifestupdate = imp.load_source("manifestupdate",
|
|
os.path.join(wpt_dir, "manifestupdate.py"))
|
|
manifestupdate.update(logger, wpt_dir, True)
|
|
|
|
|
|
LINTER = {
|
|
'name': "wpt_manifest",
|
|
'description': "web-platform-tests manifest lint",
|
|
'include': [
|
|
'testing/web-platform/tests',
|
|
'testing/web-platform/mozilla/tests',
|
|
],
|
|
'exclude': [],
|
|
'type': 'structured_log',
|
|
'payload': lint,
|
|
}
|