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

Unified Diff: third_party/closure_linter/closure_linter/error_check.py

Issue 411243002: closure_linter: 2.3.4 => 2.3.14 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove checker 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_linter/closure_linter/error_check.py
diff --git a/third_party/closure_linter/closure_linter/error_check.py b/third_party/closure_linter/closure_linter/error_check.py
index ed243e915d7a78d3b7fc526e8f9151ad7f69a426..8d657fe9174fff4f2615f66bb3436466c6649a51 100755
--- a/third_party/closure_linter/closure_linter/error_check.py
+++ b/third_party/closure_linter/closure_linter/error_check.py
@@ -34,7 +34,9 @@ class Rule(object):
NO_BRACES_AROUND_INHERIT_DOC = 'no_braces_around_inherit_doc'
BRACES_AROUND_TYPE = 'braces_around_type'
OPTIONAL_TYPE_MARKER = 'optional_type_marker'
+ VARIABLE_ARG_MARKER = 'variable_arg_marker'
UNUSED_PRIVATE_MEMBERS = 'unused_private_members'
+ UNUSED_LOCAL_VARIABLES = 'unused_local_variables'
# Rule to raise all known errors.
ALL = 'all'
@@ -46,7 +48,8 @@ class Rule(object):
WELL_FORMED_AUTHOR,
NO_BRACES_AROUND_INHERIT_DOC,
BRACES_AROUND_TYPE,
- OPTIONAL_TYPE_MARKER])
+ OPTIONAL_TYPE_MARKER,
+ VARIABLE_ARG_MARKER])
flags.DEFINE_boolean('strict', False,
@@ -69,7 +72,9 @@ flags.DEFINE_multistring('jslint_error', [],
' - ' + Rule.OPTIONAL_TYPE_MARKER + ': checks correct '
'use of optional marker = in param types.\n'
' - ' + Rule.UNUSED_PRIVATE_MEMBERS + ': checks for '
- 'unused private variables.\n')
+ 'unused private variables.\n'
+ ' - ' + Rule.UNUSED_LOCAL_VARIABLES + ': checks for '
+ 'unused local variables.\n')
def ShouldCheck(rule):

Powered by Google App Engine
This is Rietveld 408576698