Bug 1568982 - Include source line information in apilint. r=nalexander

Differential Revision: https://phabricator.services.mozilla.com/D39401

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Agi Sferro 2019-07-25 20:31:38 +00:00
Родитель 968ae4419d
Коммит 194ec7662a
2 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -83,7 +83,7 @@ buildscript {
}
dependencies {
classpath 'org.mozilla.apilint:apilint:0.2.3'
classpath 'org.mozilla.apilint:apilint:0.2.4'
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.2'
classpath 'org.apache.commons:commons-exec:1.3'

Просмотреть файл

@ -126,9 +126,11 @@ class MachCommands(MachCommandBase):
print('SUITE-START | android-api-lint')
for r in result['compat_failures'] + result['failures']:
print ('TEST-UNEXPECTED-FAIL | {} | {}'.format(r['detail'], r['msg']))
print ('TEST-UNEXPECTED-FAIL | {}:{}:{} | {}'.format(
r['file'], r['line'], r['column'], r['msg']))
for r in result['api_changes']:
print ('TEST-UNEXPECTED-FAIL | {} | Unexpected api change'.format(r))
print ('TEST-UNEXPECTED-FAIL | {}:{}:{} | Unexpected api change'.format(
r['file'], r['line'], r['column']))
print('SUITE-END | android-api-lint')
return ret