Index: trunk/src/build/android/gyp/lint.py |
=================================================================== |
--- trunk/src/build/android/gyp/lint.py (revision 244265) |
+++ trunk/src/build/android/gyp/lint.py (working copy) |
@@ -55,15 +55,17 @@ |
print >> sys.stderr |
for issue in issues: |
issue_id = issue.attributes['id'].value |
+ severity = issue.attributes['severity'].value |
message = issue.attributes['message'].value |
location_elem = issue.getElementsByTagName('location')[0] |
path = location_elem.attributes['file'].value |
line = location_elem.getAttribute('line') |
if line: |
- error = '%s:%s %s: %s [warning]' % (path, line, message, issue_id) |
+ error = '%s:%s %s: %s [%s]' % (path, line, severity, message, |
+ issue_id) |
else: |
# Issues in class files don't have a line number. |
- error = '%s %s: %s [warning]' % (path, message, issue_id) |
+ error = '%s %s: %s [%s]' % (path, severity, message, issue_id) |
print >> sys.stderr, error |
for attr in ['errorLine1', 'errorLine2']: |
error_line = issue.getAttribute(attr) |