wpt_manifest.lint 940 B

12345678910111213141516171819202122232425262728293031323334
  1. # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. import imp
  6. import json
  7. import os
  8. import sys
  9. from mozprocess import ProcessHandler
  10. from mozlint import result
  11. def lint(files, logger, **kwargs):
  12. wpt_dir = os.path.join(kwargs["root"], "testing", "web-platform")
  13. manifestupdate = imp.load_source("manifestupdate",
  14. os.path.join(wpt_dir, "manifestupdate.py"))
  15. manifestupdate.update(logger, wpt_dir, True)
  16. LINTER = {
  17. 'name': "wpt_manifest",
  18. 'description': "web-platform-tests manifest lint",
  19. 'include': [
  20. 'testing/web-platform/tests',
  21. 'testing/web-platform/mozilla/tests',
  22. ],
  23. 'exclude': [],
  24. 'type': 'structured_log',
  25. 'payload': lint,
  26. }