Comments (11)
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.
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.
@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.
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.
Same here using Sonarqube v 7.0
from android-sonar-kotlin.
@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.
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.
Same here as @DaRolla
from android-sonar-kotlin.
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.
@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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-sonar-kotlin.