
This is my build.gradle,
apply plugin: 'org.sonarqube'
sonarqube {
properties {
property "sonar.host.url", "http://10.52.211.255:9000/sonar"
property "sonar.sources", "src/main/java"
property "sonar.language", "java"
property "sonar.profile", "Android Lint"
}
}
the code is working for
property "sonar.profile", "sonar way".
But I need this for android Lint. What can be the issue with getting zero results.
It worked for me and started reporting android lint issues to sonar dashboard:
My Sonar version is 7.6.2
Add Below to sonar properties:
property "sonar.androidLint.reportPaths", "${project.buildDir}/reports/lint-results.xml"
After changing above run: ./gradlew lint sonarqube
It will show in Code Smells section
android:usesCleartextTraffic="true"
attribute usesCleartextTraffic is only used in API level 23 and higher (current min is 21) android-lint
Please refer for more details on how to show external analyzer reports to sonar dashboard.
Import third party issues Sonar Documentation Check for Kotlin Language
External Analyzer Reports
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With