зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1722691 - Allow hooks to report the count of ESLint warnings as well as errors. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D121076
This commit is contained in:
Родитель
ad83deac79
Коммит
64df328393
|
@ -29,13 +29,13 @@ def run_process(cmd):
|
|||
def run_mozlint(hooktype, args):
|
||||
if isinstance(hooktype, six.binary_type):
|
||||
hooktype = hooktype.decode("UTF-8", "replace")
|
||||
# --quiet prevents warnings on eslint, it will be ignored by other linters
|
||||
|
||||
python = find_executable("python3")
|
||||
if not python:
|
||||
print("error: Python 3 not detected on your system! Please install it.")
|
||||
sys.exit(1)
|
||||
|
||||
cmd = [python, os.path.join(topsrcdir, "mach"), "lint", "--quiet"]
|
||||
cmd = [python, os.path.join(topsrcdir, "mach"), "lint"]
|
||||
|
||||
if "commit" in hooktype:
|
||||
# don't prevent commits, just display the lint results
|
||||
|
|
Загрузка…
Ссылка в новой задаче