Disable clang/eslint in front_end/generated
This CL disables formatting within the `generated` directory, which is
all code that is programatically generated. Previously we disabled
eslint for `protocol.ts`, but now we are being consistent and disabling
it (and clang) for all files.
I also re-generated the files in the generated folder, so we avoid any
confusion if/when the generated scripts get re-run and suddenly the
format drastically changes.
DISABLE_THIRD_PARTY_CHECK=changing generated files + config
Bug: none
Change-Id: I714ada8bf7d85020e3be71b35c9db98840bf3ef2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3755163
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 1b0510d..99e7254 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -655,9 +655,10 @@
default_linted_directories, ['D'],
accepted_endings)
- # Exclude front_end/third_party files.
+ # Exclude front_end/third_party and front_end/generated files.
files_to_lint = [
- file for file in files_to_lint if "third_party" not in file
+ file for file in files_to_lint
+ if "third_party" not in file or "generated" not in file
]
if len(files_to_lint) == 0: