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

Unified Diff: chrome/browser/resources/PRESUBMIT.py

Issue 2747953002: PRESUBMIT should only check line length for .html files in c/b/resources (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/PRESUBMIT.py
diff --git a/chrome/browser/resources/PRESUBMIT.py b/chrome/browser/resources/PRESUBMIT.py
index a1d243c5da0f5f04e9a814660eed981b927607dd..891533fe71f3fbe12ebbd2abcc06a614e5f73b69 100644
--- a/chrome/browser/resources/PRESUBMIT.py
+++ b/chrome/browser/resources/PRESUBMIT.py
@@ -92,7 +92,8 @@ def IsBoolean(new_content_lines, metric_name, input_api):
def CheckHtml(input_api, output_api):
- return input_api.canned_checks.CheckLongLines(input_api, output_api, 80)
+ return input_api.canned_checks.CheckLongLines(
+ input_api, output_api, 80, lambda x: x.LocalPath().endswith('.html'))
def RunVulcanizeTests(input_api, output_api):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698