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

Unified Diff: components/sync_sessions/PRESUBMIT.py

Issue 2662453008: [Sync] Fix sync lint errors/includes, update presubmit. (Closed)
Patch Set: Rebase Created 3 years, 11 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 | « components/sync_bookmarks/PRESUBMIT.py ('k') | components/sync_sessions/revisit/page_revisit_broadcaster.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_sessions/PRESUBMIT.py
diff --git a/components/sync_sessions/PRESUBMIT.py b/components/sync_sessions/PRESUBMIT.py
index 39f2f9ac418bddecbf4cd3b5c030c32cfe7e63e4..ae142e025cb3883c4f87964600f65040a92c8cf3 100644
--- a/components/sync_sessions/PRESUBMIT.py
+++ b/components/sync_sessions/PRESUBMIT.py
@@ -12,11 +12,16 @@ import re
SYNC_SESSIONS_SOURCE_FILES = (r'^components[\\/]sync_sessions[\\/].*\.(cc|h)$',)
+# The wrapper around lint that is called below disables a set of filters if the
+# passed filter evaluates to false. Pass a junk filter to avoid this behavior.
+LINT_FILTERS = ['+fake/filter']
+
def CheckChangeLintsClean(input_api, output_api):
source_filter = lambda x: input_api.FilterSourceFile(
x, white_list=SYNC_SESSIONS_SOURCE_FILES, black_list=None)
return input_api.canned_checks.CheckChangeLintsClean(
- input_api, output_api, source_filter, lint_filters=[], verbose_level=1)
+ input_api, output_api, source_filter, lint_filters=LINT_FILTERS,
+ verbose_level=1)
def CheckChanges(input_api, output_api):
results = []
« no previous file with comments | « components/sync_bookmarks/PRESUBMIT.py ('k') | components/sync_sessions/revisit/page_revisit_broadcaster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698