NO ISSUES REPORTED BY SONAR ANDROID-LINT DEFAULT QUALITY-PROFILE

194 views
Skip to first unread message

Amal p

unread,
Mar 30, 2017, 8:39:55 AM3/30/17
to SonarQube
Hello,

  I created different quality-profiles  using PMD,Checkstyle,Android-Lint etc.But  i am getting zero results for Android-lint and when run lint using another plugin issues really exists but not showing on sonar.

apply plugin: "org.sonarqube"

sonarqube {
//noinspection GroovyAssignabilityCheck
properties {
//noinspection GroovyAssignabilityCheck
property "sonar.projectName", "appar"
//noinspection GroovyAssignabilityCheck
property "sonar.projectKey", "appar_app"
//noinspection GroovyAssignabilityCheck
property "sonar.projectVersion", "1.0"
//noinspection GroovyAssignabilityCheck
property "sonar.analysis.mode", "publish"
//noinspection GroovyAssignabilityCheck
property "sonar.language", "java"
//noinspection GroovyAssignabilityCheck
property "sonar.sources", "src/main/java/"
//noinspection GroovyAssignabilityCheck
//property "sonar.exclusions", "**/*Entity.java"
// noinspection GroovyAssignabilityCheck
property "sonar.exclusions", "src/main/java/com/apparkb/model/**, **/*Entity.java"
//noinspection GroovyAssignabilityCheck
property "sonar.profile", "Android-Lint"
//noinspection GroovyAssignabilityCheck
property "sonar.host.url", "http://192.168.21.33:9000"
//noinspection GroovyAssignabilityCheck
property "sonar.login", "admin"
//noinspection GroovyAssignabilityCheck
property "sonar.password", "admin"
//noinspection GroovyAssignabilityCheck
property "sonar.java.binaries", "build/"
//noinspection GroovyAssignabilityCheck
property "sonar.android.lint.report", "./build/outputs/lint-results.xml"

}
}

this is my sonar properties file and i have no idea what  property "sonar.android.lint.report", "./build/outputs/lint-results.xml"  does ?

will the lint-results.xml get automatically created

is there any extra to be added to gradle to get results on sonar

like for findbugs i had to add  property "sonar.java.binaries", "build/" 



Please help
Thanks and regards

Nicolas Peru

unread,
May 10, 2017, 9:27:09 AM5/10/17
to Amal p, SonarQube
Hi,

The android-lint plugin won't run the linter for you but just import its results from the file specified in the sonar.android.lint.report 

So how do you generate the lint report before running the analysis ? what does the file  build/outputs/lint-results.xml contains ?

Cheers, 

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/11b3f54b-9949-4489-b9f8-c66b316f2f59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Nicolas Peru | SonarSource
Reply all
Reply to author
Forward
0 new messages