Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: third_party/closure_compiler/checker.py

Issue 418663002: Typecheck JS files for chrome://help before doing import transition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@json_to_pydict
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/closure_compiler/checker.py
diff --git a/third_party/closure_compiler/checker.py b/third_party/closure_compiler/checker.py
index 2d56afc630f2a108794641dd781bd463046dc9e3..7e58e7940be7ec1cef3811eb470b62feb3131a1d 100644
--- a/third_party/closure_compiler/checker.py
+++ b/third_party/closure_compiler/checker.py
@@ -71,7 +71,9 @@ class Checker(object):
"--jscomp_error=accessControls",
"--jscomp_error=ambiguousFunctionDecl",
"--jscomp_error=checkStructDictInheritance",
- "--jscomp_error=checkTypes",
+ # TODO(vitalyp): switch to jscomp_error after transition to new imports
+ "--jscomp_warning=checkTypes",
Dan Beam 2014/07/23 22:09:24 did @suppress {checkTypes} not work? i don't thin
Vitaly Pavlenko 2014/07/24 00:59:58 I'll enable it in the next CL where I switch to cr
+ # "--jscomp_error=newCheckTypes",
"--jscomp_error=checkVars",
"--jscomp_error=constantProperty",
"--jscomp_error=deprecated",
@@ -79,7 +81,8 @@ class Checker(object):
"--jscomp_error=globalThis",
"--jscomp_error=invalidCasts",
"--jscomp_error=misplacedTypeAnnotation",
- "--jscomp_error=missingProperties",
+ # TODO(vitalyp): switch to jscomp_error after transition to new imports
Dan Beam 2014/07/23 22:09:24 maybe we could stand for this, but why can't we ju
Vitaly Pavlenko 2014/07/24 01:09:31 I caught a situation when the suppress declaration
+ "--jscomp_warning=missingProperties",
"--jscomp_error=missingReturn",
"--jscomp_error=nonStandardJsDocs",
"--jscomp_error=suspiciousCode",

Powered by Google App Engine
This is Rietveld 408576698