diff --git a/python/licenseck.py b/python/licenseck.py index 0b2f6700c82..c904833ea8e 100644 --- a/python/licenseck.py +++ b/python/licenseck.py @@ -23,6 +23,14 @@ licenses = [ # file, You can obtain one at http://mozilla.org/MPL/2.0/. """, +"""\ +#!/usr/bin/env 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/. +""", + """\ // 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 diff --git a/python/tidy.py b/python/tidy.py index cb20dff1646..4d24b2163cb 100644 --- a/python/tidy.py +++ b/python/tidy.py @@ -14,7 +14,7 @@ import fnmatch import itertools from licenseck import licenses -directories_to_check = ["ports", "components"] +directories_to_check = ["ports", "components", "tests"] filetypes_to_check = [".rs", ".rc", ".cpp", ".c", ".h", ".py"] reftest_directories = ["tests/ref"] reftest_filetype = ".list" @@ -22,7 +22,7 @@ reftest_filetype = ".list" ignored_files = [ # Upstream "support/*", - "tests/wpt/web-platform-tests/*", + "tests/wpt/*", # Generated and upstream code combined with our own. Could use cleanup "components/script/dom/bindings/codegen/*",