OLD | NEW |
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 Loading... |
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() |
OLD | NEW |