Giter VIP home page Giter VIP logo

Comments (11)

marcinbak avatar marcinbak commented on August 23, 2024 2

I'm going to come back to the topic this week, trying to use Sonarqube 6.7 that has Kotlin support. Once I manage working setup, will push the changes here.

from android-sonar-kotlin.

saptan avatar saptan commented on August 23, 2024 1

Same here as @DaRolla, but i am using SonarQube 6.7.5 (build 38563). If i set this properties sonarcube gradle compile success

    property "sonar.sources", "app/src/main/java"
    property "sonar.tests", ["src/test/java", "src/test/kotlin"]

    property "sonar.exclusions", "app/src/main/java/**"
    property "sonar.test.inclusions", "app/src/test/java/**"

Jacoco test reports show code coverage, but sonar nothing

from android-sonar-kotlin.

marcinbak avatar marcinbak commented on August 23, 2024

@Naibeck I've fixed the issue. For some reason it was not looking for detekt configuration file in the root project folder so now I'm stating the absolute path in build.gradle.

The second problem doesn't occur on for me. Maybe it depends on the sonarqube server version/configuration?

from android-sonar-kotlin.

Simon-Raes avatar Simon-Raes commented on August 23, 2024

Having the same issue here:

Execution failed for task ':sonarqube'.
> File app/src/main/java/de/neofonie/androidsonarkotlin/MainActivity.kt can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files

Running Sonarqube Version 7.0 (build 36138) locally.

from android-sonar-kotlin.

Naibeck avatar Naibeck commented on August 23, 2024

Same here using Sonarqube v 7.0

from android-sonar-kotlin.

marcinbak avatar marcinbak commented on August 23, 2024

@Naibeck @Simon-Raes I've been working with SonarQube 6.4, 6.5 as newer versions have some significant changes and some plugins are not compatible with them.

from android-sonar-kotlin.

DaRolla avatar DaRolla commented on August 23, 2024

Hi there,

I am using SonarQube 7.2.1 and I get this "indexed twice" problem as well.

Here I found my solution: https://stackoverflow.com/questions/45638477/sonar-fails-with-cant-be-indexed-twice-please-check-that-inclusion-exclusion-p?rq=1

So, in build.gradle I commented out the "sonar.sources" and the "sonar.tests", it compiles, but I do NOT get any coverage :-(

from android-sonar-kotlin.

rokjsn avatar rokjsn commented on August 23, 2024

Same here as @DaRolla

from android-sonar-kotlin.

saptan avatar saptan commented on August 23, 2024

Hi @marcinbak ! Do I have any chance to see a solution to this problem. Unfortunately, I was still unable to implement code analysis on Kotlin.

from android-sonar-kotlin.

marcinbak avatar marcinbak commented on August 23, 2024

@saptan sorry, it's been so busy year that I had no free time whatsoever. As mentioned above we want to migrate to Sonarqube 6.7 at work, so once this is done I'll definitely update this repo.

from android-sonar-kotlin.

marcinbak avatar marcinbak commented on August 23, 2024

@saptan managed to use sonarqube 6.7 and configure the project properly. Please try again according to steps in README.md

from android-sonar-kotlin.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.