I have recently deployed sonarlint plugin with eclipse. thes are my configuration:
Eclipse Version: 2018-09 (4.9.0)
Sonarlint plugin: 4.3
Sonarqube server: Community Edition Version 7.6
After configuring soarlint to connect with sonarque server, i start anlyse of my java project, but from sonarlint console, it seems that all java files are exluded from analyse while i have not exluded any files to be analyzed !
I notice that only html and js files from project are analysed.
this is the output of SonarLint console in verbose mode:
…
File ‘src/main/java/com/bouygtel/ici/service/ConfigurationPicassoOAuth2ServiceImpl.java’ excluded by ‘JavaProjectConfiguratorExtension’
File ‘src/main/java/com/bouygtel/ici/service/FiltrageService.java’ excluded by ‘JavaProjectConfiguratorExtension’
File ‘src/test/java/com/bouygtel/ici/web/controller/ReferentielControllerTest.java’ excluded by ‘JavaProjectConfiguratorExtension’
File ‘src/test/java/com/bouygtel/ici/web/controller/ReferentielControllerTest.java’ excluded by ‘JavaProjectConfiguratorExtension’
…
Anyone?
This log usually means that we were not able to collect a proper classpath for those files. Is it a normal JDT project? Are files marked as derived (generated code)? Do you have auto-build enabled, and do you have compilation errors?
FYI here is the code responsible for this behavior:
Hello @Julien_HENRY,
Thank you for your support.
In fact, it’s a classpath problem. I solved my problem by importing the existing maven project.
Best Regards,