-
-
Notifications
You must be signed in to change notification settings - Fork 52
Error during SonarScanner execution #170
Comments
Seems that version 2.5.0 doesn't contain last changes related with detekt 1.23.0 that are on this last PR #167 committed by @boswelja. I was wondering if you @cortinico can help to release a new version with these last changes 🙏 |
We would have to first update version to detekt 1.23.1 before we can make a new release. Are you up for doing it? |
No idea of how to do it tbh. It is just updating the pom.xml? |
Practically yes. Check through the git history to find similar bumps |
I'm gonna need push permissions |
Nope you don't need push permissions. Please fork this repo and send a pull request |
So the new version of detekt is merged in main, is it planned to release a new version? |
Yes but I don't have the time at the moment to do so. I'll get back to it at the end of the month |
If you have a test instance of Sonarqube, please take a look at a prerelease of 2.6.0 (https://github.com/detekt/sonar-detekt/releases/tag/2.6.0-RC1) which comes with detekt 1.23.1. |
ey sorry for the delay answering, we are having some problems testing it because it requires at least SonarQube 9.9. 2023.09.26 10:27:17 WARN web[][o.s.c.a.AnnotationConfigApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@6a6824be-org.sonar.server.plugins.ServerPluginManager': Initialization of bean failed; nested exception is Plugin detekt [detekt] requires at least SonarQube 9.9 |
btw why this requirement of 9.9 minimal version @arturbosch ? |
Maybe a more feasible solution instead of keep updating detekt could be to apply something like this : https://github.com/detekt/detekt-intellij-plugin/pull/103/commits |
Is there a way to update the rules from outside the plugin? I've more errors, note
|
We're already using detekt on the client side and passing the report through |
I was able to overcome the build failure by removing |
Hi,
I'm trying to build and scan the code of my app on bitrise, but I'm getting an Invalid Config error:
In our project we are using detekt plugin 1.23.0 and it is working fine, but it seems that the sonar scanner is not using that version, since CyclomaticComplexMethod for example was added in 1.22.0.
The text was updated successfully, but these errors were encountered: