Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sonar qube not showing results for Android Lint

enter image description here

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.

like image 982
charitha amarasinghe Avatar asked Oct 26 '25 21:10

charitha amarasinghe


1 Answers

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

like image 67
takharsh Avatar answered Oct 28 '25 12:10

takharsh