I have 2 projects : pyCharm(python) + intelliJ IDEA (Java).
One application setup in github, installed on the 2 repositories.
Python project and Java project are identical.
but only the analysis on python is ok.
The setup looks correct, when I push from intelliJ IDEA on the master branch, the action is triggered, it runs for 30 minutes with no error but when I’m refreshing the SQ page, the project is still showing has “no analysis done”.
The project key is in the sonar-project.properties in the root folder.
Can you share the analysis logs of the Java project?
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.
I’ve been able to setup the scanner on my local server and I got now the analysis. One more question…
Because we want to run the analysis locally (github pricing model), We have updated the code, pushed the project to github and now I’m stuck because I want to update the local repository (“gh pr create” failed). Do you have some recommendations?
Thank you !
I am far from an expert in Git / GitHub. I have no advice for how to properly wrangle Git to get your PR created.
All I can say is that once it is created, you’ll want to check the code out to where you’re performing analysis and make sure you keep the prerequisites in mind when you do that.
And also, when you say “local”, I hope you mean a locally-hosted CI, rather than your localhost. Local-CI is cool, but analyzing from localhost is not best practice.