Skip to content

Commit

Permalink
[Android] Enable lint warnings by default.
Browse files Browse the repository at this point in the history
Lint has been running on FYI bots for a while,
time to enable them by default on bots and for developers.

BUG=None
R=yfriedman@chromium.org

Review URL: https://codereview.chromium.org/127383002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244256 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
frankf@chromium.org committed Jan 10, 2014
1 parent 0121c10 commit e537969
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/android/buildbot/bb_run_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def GetBotStepMap():
H(compile_step + std_host_tests, experimental, target_arch='x86')),
B('fyi-builder-dbg',
H(std_build_steps + std_host_tests, experimental,
extra_gyp='emma_coverage=1 android_lint=1')),
extra_gyp='emma_coverage=1')),
B('x86-builder-dbg',
H(compile_step + std_host_tests, target_arch='x86')),
B('fyi-builder-rel', H(std_build_steps, experimental)),
Expand Down
6 changes: 2 additions & 4 deletions build/android/gyp/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,15 @@ def _ParseAndShowResultFile():
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 [%s]' % (path, line, severity, message,
issue_id)
error = '%s:%s %s: %s [warning]' % (path, line, message, issue_id)
else:
# Issues in class files don't have a line number.
error = '%s %s: %s [%s]' % (path, severity, message, issue_id)
error = '%s %s: %s [warning]' % (path, message, issue_id)
print >> sys.stderr, error
for attr in ['errorLine1', 'errorLine2']:
error_line = issue.getAttribute(attr)
Expand Down
2 changes: 1 addition & 1 deletion build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@
'emma_filter%': '',

# Set to 1 to enable running Android lint on java/class files.
'android_lint%': 0,
'android_lint%': 1,

# Set to 1 to force Visual C++ to use legacy debug information format /Z7.
# This is useful for parallel compilation tools which can't support /Zi.
Expand Down

0 comments on commit e537969

Please sign in to comment.