зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1541545 [wpt PR 15952] - Consolidate .gitignore files under the root., a=testonly
Automatic update from web-platform-tests Consolidate .gitignore files under the root (#15952) Multiple .gitignores aren't supported by the manifest update code when running against the filesystem, so put all the rules in the root file instead. This also adds a lint to check for extra .gitignore files. -- wpt-commits: 46712a196fbac08bac95203f4d0861d25268ea7f wpt-pr: 15952
This commit is contained in:
Родитель
62f039a3c7
Коммит
14bb87e713
|
@ -1,18 +1,20 @@
|
|||
# Python
|
||||
*.py[co]
|
||||
.virtualenv/
|
||||
_venv/
|
||||
.cache/
|
||||
.coverage*
|
||||
.pytest_cache/
|
||||
.tox/
|
||||
.coverage*
|
||||
.virtualenv/
|
||||
_venv/
|
||||
_virtualenv/
|
||||
|
||||
# Node
|
||||
node_modules/
|
||||
|
||||
# WPT repo stuff
|
||||
/MANIFEST.json
|
||||
.wptcache/
|
||||
/MANIFEST.json
|
||||
/_certs
|
||||
/config.json
|
||||
|
||||
# Files generated when regenerating pre-generated certs
|
||||
|
@ -22,11 +24,25 @@ node_modules/
|
|||
|
||||
# Various OS/editor specific files
|
||||
*#
|
||||
*.orig
|
||||
*.rej
|
||||
*.svn
|
||||
*.sw[po]
|
||||
*.xcodeproj
|
||||
*Thumbs.db
|
||||
*~
|
||||
\#*
|
||||
scratch
|
||||
.DS_Store
|
||||
.directory*
|
||||
.idea/
|
||||
.vscode/
|
||||
.DS_Store
|
||||
*.rej
|
||||
\#*
|
||||
scratch
|
||||
|
||||
# Testsuite-specific rules
|
||||
/conformance-checkers/vnu.jar
|
||||
/cors/resources/log.txt
|
||||
/css/build-temp
|
||||
/css/dist
|
||||
/css/dist_last
|
||||
/css/tools/cache
|
||||
/webaudio/idl/*
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
vnu.jar
|
|
@ -1 +0,0 @@
|
|||
logs.txt
|
|
@ -1,15 +0,0 @@
|
|||
/dist
|
||||
/dist_last
|
||||
/build-temp
|
||||
/tools/cache
|
||||
/tools/_virtualenv
|
||||
*.xcodeproj
|
||||
*.DS_Store
|
||||
*.pyc
|
||||
*.svn
|
||||
.directory*
|
||||
*~
|
||||
*.orig
|
||||
*Thumbs.db
|
||||
/_certs
|
||||
/config.json
|
|
@ -1 +0,0 @@
|
|||
node_modules
|
|
@ -1 +0,0 @@
|
|||
node_modules
|
|
@ -1,3 +0,0 @@
|
|||
ROBIN-TODO.txt
|
||||
scratch
|
||||
node_modules
|
|
@ -134,6 +134,28 @@ def check_worker_collision(repo_root, path):
|
|||
return []
|
||||
|
||||
|
||||
def check_gitignore_file(repo_root, path):
|
||||
if not path.endswith(".gitignore"):
|
||||
return []
|
||||
|
||||
path_parts = path.split(os.path.sep)
|
||||
if len(path_parts) == 1:
|
||||
return []
|
||||
|
||||
if path_parts[-1] != ".gitignore":
|
||||
return []
|
||||
|
||||
if (path_parts[0] in ["tools", "docs"] or
|
||||
path_parts[:2] == ["resources", "webidl2"] or
|
||||
path_parts[:3] == ["css", "tools", "apiclient"]):
|
||||
return []
|
||||
|
||||
return [("GITIGNORE",
|
||||
".gitignore found outside the root",
|
||||
path,
|
||||
None)]
|
||||
|
||||
|
||||
def check_ahem_copy(repo_root, path):
|
||||
lpath = path.lower()
|
||||
if "ahem" in lpath and lpath.endswith(".ttf"):
|
||||
|
@ -908,7 +930,7 @@ def lint(repo_root, paths, output_format):
|
|||
logger.info(line)
|
||||
return sum(itervalues(error_count))
|
||||
|
||||
path_lints = [check_path_length, check_worker_collision, check_ahem_copy]
|
||||
path_lints = [check_path_length, check_worker_collision, check_ahem_copy, check_gitignore_file]
|
||||
all_paths_lints = [check_css_globally_unique]
|
||||
file_lints = [check_regexp_line, check_parsed, check_python_ast, check_script_metadata]
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
idl/*
|
Загрузка…
Ссылка в новой задаче