SERVER-119997 Dont run prettier on monguard directory
GitOrigin-RevId: b5941c8133404e66632c64c9ffe974c32e6e6fcc
This commit is contained in:
parent
4d4b95e18e
commit
843749abc3
@ -27,3 +27,6 @@ venv
|
|||||||
|
|
||||||
.ijwb
|
.ijwb
|
||||||
.git
|
.git
|
||||||
|
|
||||||
|
# This is not run by bazel at the moment
|
||||||
|
monguard
|
||||||
|
|||||||
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -13,5 +13,5 @@ src/mongo/bson/column/bson_column_compressed_data.inl rules-lint-ignored=true
|
|||||||
*.idl linguist-language=yaml
|
*.idl linguist-language=yaml
|
||||||
# Do not automatically merge golden test expected output files
|
# Do not automatically merge golden test expected output files
|
||||||
jstests/**/expected_output/**/* -merge
|
jstests/**/expected_output/**/* -merge
|
||||||
|
monguard/** rules-lint-ignored=true
|
||||||
MODULE.bazel.lock rules-lint-ignored=true linguist-generated
|
MODULE.bazel.lock rules-lint-ignored=true linguist-generated
|
||||||
|
|||||||
@ -60,3 +60,6 @@ bazel-*
|
|||||||
src/mongo/db/modules/enterprise/src/streams/third_party/mongocxx/dist
|
src/mongo/db/modules/enterprise/src/streams/third_party/mongocxx/dist
|
||||||
# asp-js-engine is an external module copied during Docker builds
|
# asp-js-engine is an external module copied during Docker builds
|
||||||
asp-js-engine
|
asp-js-engine
|
||||||
|
|
||||||
|
# Ignore monguard directory due to not being part of regular build
|
||||||
|
monguard
|
||||||
|
|||||||
@ -103,6 +103,7 @@ def run_prettier(
|
|||||||
"!./bazel-mongo",
|
"!./bazel-mongo",
|
||||||
"!./external",
|
"!./external",
|
||||||
"!./.compiledb",
|
"!./.compiledb",
|
||||||
|
"!./monguard",
|
||||||
}
|
}
|
||||||
for path in pathlib.Path(".").iterdir():
|
for path in pathlib.Path(".").iterdir():
|
||||||
if path.is_symlink():
|
if path.is_symlink():
|
||||||
@ -113,6 +114,9 @@ def run_prettier(
|
|||||||
"--cache",
|
"--cache",
|
||||||
"--log-level",
|
"--log-level",
|
||||||
"warn",
|
"warn",
|
||||||
|
# Changed-files mode may include extensions prettier does not parse (for example .py, .sky).
|
||||||
|
# Ignore unknown files so formatter routing can continue instead of failing early.
|
||||||
|
"--ignore-unknown",
|
||||||
]
|
]
|
||||||
if files_to_format == "all":
|
if files_to_format == "all":
|
||||||
command += ["."]
|
command += ["."]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user