I need help regarding the sonarcube code check.
When we setup initially, it was checking code duplcaites and rest of the checks for my java based project.
But it’s not working from sometime. I have done setup again no luck.
And i need to run analysis on my whole code base it’s not in sync with code checks.
Can you guys help with this how to do that. I am not using CI based analysis, as my project have Angualr code and i can’t pass jar files in order to work on CI.
I am using Automatic Analysis method.
am I missing something to do the setup in order to work all functions properly. i am not looking into code-coverage analysis.
I had a quick look in our logs and it seems like all of your files are ignored during the analysis.
So there is probably some issues with your configuration.
You can tune the analysis with some additional configuration, you should try to define a correct sonar.sources parameter that match your project, see this documentation article for more information about the analysis scope.
About the main branch of your project, it is analyzed but you are seeing this message because it’s empty, there are no files in it.
To be eligible for automatic analysis, your Java project must use either Maven or Gradle and the total amount of code in the project must be less than 10MB.
My project is mix of Angular and Java, and we don’t have Maven or Gradle
In order to use CI- based analysis it’s not working as we don’t have jar’s for this as code won’t create jar’s please guide us.
If you don’t use Maven or Gradle then you won’t be able to analyze your Java code using the Automatic analysis. What tool do you use to build your Java code?
You could still only analyze your Javascript code using Automatic analysis. But you still need to configure correctly the sonar.sources properties so that your source files are analyzed.
Ok, I see, so you won’t be able to analyze your Java code.
But using the Automatic analysis you should still be able to analyze your Angular code. Did you try tuning the sonar.sources parameter of the Automatic analysis to your angular src folder?