-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
devon formatter not having same values like Sonar plugin #136
Comments
@rhobolic thanks for reporting this bug. sonar-devon4j-plugin/src/main/resources/com/devonfw/ide/sonarqube/common/rules/devon4j/devon4j.xml Line 703 in 3bd6482
As we can see the parameters are simply wrong: sonar-devon4j-plugin/src/main/resources/com/devonfw/ide/sonarqube/common/rules/devon4j/devon4j.xml Line 729 in 3bd6482
I will simply change this and set the indentation to 2 instead of 4. BTW:
As a lot of people seemed to get confused with devonfw artifacts here are some hints to match them properly:
|
For the record: There are several very picky checkstyle rules active in our config that should also be discussed:
There might be more in this regard. I can do some testing on this and file a new issue for it if applicable... |
I assume that this issue is fixed and can be closed. However, my tests are currently blocked by #141. |
Another interesting fact is that the file that I initially created came from here and is still present: It has correct indentation configured and lots of other differences. |
If I'm using the devon ide (devon4j) without touching everything I get issues in Sonar though I use the devon sonar plugin also without changes.
Problem description:


As an example here is to take the checkstyle rule which is also part of devon java profile "Intendation". When I look into the profile I see the following configuration.
But if I look into the formatter in the ide there is the following configuration
Therefore Sonar is throwing an issue. There are also other issues like "Import order" or "Line length"
Expectation
Devon ide, devon formatter and devon sonar plugin have the same values and work out of the box without throwing issues.
The text was updated successfully, but these errors were encountered: