Jfoenix: Sonarqube badge on README.md seems outdated

Created on 26 Sep 2019  路  11Comments  路  Source: sshahine/JFoenix

image

4th badge is pointing sonardebt as like below (README.md)

[sonardebt]:https://sonarqube.com/dashboard?id=com.jfoenix%3Ajfoenix-root
[sonardebt img]:https://sonarqube.com/api/badges/measure?key=com.jfoenix:jfoenix-root&metric=sqale_debt_ratio

if you clicks the badge https://sonarqube.com/dashboard?id=com.jfoenix%3Ajfoenix-root then the link redirects you to https://sonarcloud.io/dashboard?id=com.jfoenix%253Ajfoenix-root with 404 error.

image

I think this link should be changed to https://sonarcloud.io/dashboard?id=com.jfoenix%3Ajfoenix-root which is %25 less.

image

BUT, I couldn't found appropriate sqale_debt_ratio metric on Get project badges button on the bottom right with new sonarcloud.io.

image

Additional information

  • theres also sonar link on README.md which is never used
    [sonar]:https://sonarqube.com/dashboard?id=com.jfoenix%3Ajfoenix-root [sonar img]:https://sonarqube.com/api/badges/gate?key=com.jfoenix:jfoenix-root
  • and ..... the repo shown on sonar is seems outdated too 馃槶
    image

All 11 comments

@silentsoft working on it, thanks for pointing out the issue 馃憤

I linked repo, however I'm not sure why it's not analyzing java files.
@silentsoft are you familiar with sonar cloud properties file? a help would be appreciated

@jfoenixadmin Im not familiar with sonar but I'll try it with my personal repo :)

@jfoenixadmin Okay,.... accidentally I found this document.

https://sonarcloud.io/documentation/autoscan/

SonarCloud can autonomously scan your code, by simply reading it from your repository! We call that AutoScan.

This is currently a Beta feature, with a limited scope and some caveats. Those limitations will be removed along the way.
The following languages are currently supported:

ABAP
Apex
CSS
Flex
Go
HTML
JS
Kotlin
PHP
Python
Ruby
Scala
Swift
TypeScript
TSQL
XML

for clearify, Sonarcloud's Auto Scan feature seems not available for java project.
and also CircleCI seems not compatible with Sonarcloud too. (for truly Continuous Integration)

because when I clicks With Travis CI : configure analysis on Overview page,

image

it looks like truly automated with .travis.yml file

image

but when I clicks With other CI tools : congifure analysis on Overview page,

image

it makes me to run command ./gradlew sonarqube \.... manually seems not automated


So ... I am wondering if TravisCI is on the table or not 馃槙

I see, that's why it was not analyzing java files.
Thanks you @silentsoft for the explanation

I think we should move to TravisCI

@jfoenixadmin great ! I'll try with TravisCI too 馃槈

@jfoenixadmin I've just signup to TravisCI to test and the test has been succeed ! but theres some extra issues.

Steps What I did

1) Sign Up to TravisCI with GitHub account
2) click JFoenix repo on TravisCI dashboard
3) activate it
4) commit and push .travis.yml and build.gradle
- https://github.com/silentsoft/JFoenix/commits/master

Problems

When I configure TravisCI's build image to oraclejdk8 and oraclejdk9 (through this commit), the test won't be succeed. oraclejdk8 : License stuff... blablabla... oraclejdk9 : retrolambda dependency makes trouble. (build job log)

and when i changed to openjdk8 and openjdk9 (through this commit), openjdk8 : success, openjdk9 : failure (build job log) (still retrolambda makes trouble I guess)

so when i removed openjdk9 build image (through this commit) the test finally succeed (build job log)

and GitHub commit status looks good !
image

ANYWAY BUT

this is what most confused thing.
your sonarcloud quality gates and my sonarcloud quality gates seems totally same 馃槙

I have no idea what is happening with sonarcloud ..... 馃槶

@silentsoft thank you for the clarification 馃憤

Regarding the retro-lambda build, it's only supported on the Java 8 version. There is no retro-lambda build for Java 9.
Also regarding Java 9 build, master branch is not compatible with Java 9. JFoenix-9.0.0 branch should be used in the build process instead.

I created an account for JFoenix on TravisCI, @silentsoft feel free to create PR of the build yml file 馃憤

About sonarcloud, yeah it's very weird it's still ignoring the java files :s

@jfoenixadmin okay, I'll create a PR when I am done with more extra test 馃槈

@jfoenixadmin you can look around through #1060

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SkaaRJik picture SkaaRJik  路  4Comments

swftvsn picture swftvsn  路  3Comments

alittwin picture alittwin  路  4Comments

TurekBot picture TurekBot  路  5Comments

rickyzhangca picture rickyzhangca  路  4Comments