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

Side by Side Diff: build/android/lint/suppress.py

Issue 1315743004: [Android] Add a custom pylintrc for build/android/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix appurify_sanitized import-errors Created 5 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 unified diff | Download patch
« no previous file with comments | « build/android/lighttpd_server.py ('k') | build/android/method_count.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Add all generated lint_result.xml files to suppressions.xml""" 7 """Add all generated lint_result.xml files to suppressions.xml"""
8 8
9 # pylint: disable=no-member
10
9 11
10 import collections 12 import collections
11 import optparse 13 import optparse
12 import os 14 import os
13 import sys 15 import sys
14 from xml.dom import minidom 16 from xml.dom import minidom
15 17
16 _BUILD_ANDROID_DIR = os.path.join(os.path.dirname(__file__), '..') 18 _BUILD_ANDROID_DIR = os.path.join(os.path.dirname(__file__), '..')
17 sys.path.append(_BUILD_ANDROID_DIR) 19 sys.path.append(_BUILD_ANDROID_DIR)
18 20
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 _, args = parser.parse_args() 108 _, args = parser.parse_args()
107 109
108 if len(args) != 1 or not os.path.exists(args[0]): 110 if len(args) != 1 or not os.path.exists(args[0]):
109 parser.error('Must provide RESULT-FILE') 111 parser.error('Must provide RESULT-FILE')
110 112
111 _Suppress(_CONFIG_PATH, args[0]) 113 _Suppress(_CONFIG_PATH, args[0])
112 114
113 115
114 if __name__ == '__main__': 116 if __name__ == '__main__':
115 main() 117 main()
OLDNEW
« no previous file with comments | « build/android/lighttpd_server.py ('k') | build/android/method_count.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698