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

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

Issue 2328693002: Updated linter with upstream release (2.3.19) (Closed)
Patch Set: Created 4 years, 3 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 8d657fe9174fff4f2615f66bb3436466c6649a51..5fe2b92c776ec740316b1390359eba53df9c40aa 100755
--- a/third_party/closure_linter/closure_linter/error_check.py
+++ b/third_party/closure_linter/closure_linter/error_check.py
@@ -89,6 +89,8 @@ def ShouldCheck(rule):
Returns:
True if the rule should be checked according to the flags, otherwise False.
"""
+ if 'no_' + rule in FLAGS.jslint_error:
+ return False
if rule in FLAGS.jslint_error or Rule.ALL in FLAGS.jslint_error:
return True
# Checks strict rules.

Powered by Google App Engine
This is Rietveld 408576698