-
Notifications
You must be signed in to change notification settings - Fork 160
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
Not working with spring-javaformat #550
Comments
You may have to press Apply in between, i.e. after adding the 3rd party jar. |
@tsjensen Yes, I've done that. So, it's already listed when I open the preference window, but the error still shows up. |
Ok, just an idea, I'll be quiet then. 😊 |
Sorry for the delay, I spent the weekend trapped stripping wallpaper 😢 The problem is that your Spring module is spread over two JAR files - MVNRepository shows the dependency on spring-javaformat-config. After adding both JARs it works for me. Likewise, you need to do the same when running it via the CLI: java -cp test-configs/spring-javaformat-checkstyle-0.0.31.jar:test-configs/spring-javaformat-config-0.0.31.jar:$HOME/Downloads/checkstyle-9.3-all.jar com.puppycrawl.tools.checkstyle.Main -c test-configs/issue-550.xml src |
Oh, ic. Thanks now it works!! |
I was trying to apply checkstyle rules with spring-javaformat.
IntelliJ IDEA: 2021.3.2 (Ultimate Edition)
Checkstyle Plugin: 5.61.0
Spring Javaformat: 0.0.31
Based on here, I have created this
checkstyle.xml
:When I tried to add this checkstyle file, received the following exceptions:
After reading #510, I added
spring-javaformat-checkstyle-0.0.31.jar
as "Third-Party Checks".It passed the above, but still failed with:
I see
SpringLeadingWhitespaceCheck
exists in thespring-javaformat-checkstyle-0.0.31.jar
.Here is the complete error:
The text was updated successfully, but these errors were encountered: