-
Notifications
You must be signed in to change notification settings - Fork 89
Generate reports
Martin Chalupa edited this page Apr 23, 2020
·
2 revisions
You can generate report from lint by:
./gradlew generateGradleLintReport
You can select a format of the report via an extension:
gradleLint {
reportFormat = 'text'
}
Or via a project property which overrides the extension:
./gradlew generateGradleLintReport -PgradleLint.reportFormat=text
Supported values are text
, xml
, html
with default value html
The report will have the same rules you would get by using lintGradle
task.
You can configure the report to contain only rules which would be applied when using fixGradleLint
. Rules without automated fixes or rules skipped due to conflict won't be added.
You can enable it in the extension:
gradleLint {
reportOnlyFixableViolations = true
}
Or via a project property which overrides the extension:
./gradlew generateGradleLintReport -PgradleLint.reportOnlyFixableViolations=true