1,323 questions
1
vote
0
answers
54
views
How do I get java checkstyle to work for emacs?
I wonder if there's any way to get checkstyle working with emacs, as solutions I have found are outdated or don't work.
JDEE seems to have a way to use checkstyle, but it's an outdated package that ...
1
vote
0
answers
35
views
Code for Checkstyle linter in Emacs throws error
I am trying to set up ELisp code to enable a checkstyle linter for java development with the flycheck package, but it throws an error I don't understand when running doom doctor for diagnosis.
;;;; 0
...
Advice
1
vote
0
replies
73
views
Intellij - How to modify the google_checks.xml to be used with Code Style Scheme's auto-reformat?
I'm using Intellij IDEA with CheckStyle-IDEA plugin, then import it using Code Style -> Java -> Import Scheme -> Checkstyle Configuration -> google_checks.xml.
This lets me reformat the ...
1
vote
1
answer
90
views
Checkstyle: ImportOrder vs CustomImportOrder
In the Checkstyle tool what's the difference between the ImportOrder and the CustomImportOrder rules?
At the first glance they look similar.
1
vote
1
answer
113
views
Disable checkstyle Indentation for a certain token
I'm using clang-format with checkstyle in Java project and having an issue with Lambda indentation
Specifically - due to clang-format Java limitations in certain scenarios my lambdas are formatted as ...
0
votes
1
answer
166
views
Checkstyle plugin ignore LineLength in //@formatter blocks
I use the checkstyle plugin with version 3.6.0 and the chekcstyle version 9.3. I am trying to implement a way to ignore the line length in blocks that start with //@formatter:off and finish with //@...
3
votes
0
answers
230
views
Using VS Code java formatter in IntelliJ
I'm using checkstyle in my springboot project, VS code formatter that I think came from redhat is able to automatically format the import order, and code length so it doesn't violate checkstyle rules.
...
0
votes
1
answer
463
views
How to exclude files with checkstyle
I`m trying to exclude the checkstyle for the files on src/main I just want to check the files on my test folder that's why I've added includeTestSourceDirectory.
I tried this <excludeFiles>src/...
0
votes
1
answer
51
views
How to apply Regexp rule only for files with concrete names in Checkstyle
I have a regexp rule:
<module name="TreeWalker">
<module name="Regexp">
...
</module>
</module>
And I want to use this rule only for ...
0
votes
1
answer
72
views
How to check empty line between license header and package name in Checkstyle
Could anyone say how to check the presence of empty line between license header and package name, if it is possible. I mean:
/*
* My license
*/
<-- I need an empty line here and I ...
0
votes
1
answer
164
views
AWS SAM build fails with error: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.3.1
When I build my Spring Boot 3 app (JDK 21),
I get the following error while running the AWS SAM build command:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.3.1:...
2
votes
2
answers
2k
views
How to configure Checkstyle config from a JAR dependency in Gradle
I seem to have stumbled upon a very simple problem (which should be very straight-forward) but unable to find an answer for the last 4 hrs.
I am trying to configure a custom checkstyle config in my ...
0
votes
1
answer
592
views
How to Add Custom Checkstyle Version in IntelliJ IDEA Ultimate 2024.1.1?
I recently upgraded to IntelliJ IDEA Ultimate 2024.1.1 and encountered an issue with the Checkstyle plugin. My project uses a specific version of Checkstyle defined in checkstyle.xml which isn't ...
1
vote
1
answer
214
views
Adding Test Fixtures into checkstyle checks in gradle multiproject
Recently found out about the java-test-fixtures gradle plugin and added it in order to share some functionality between tests for sub projects in a big multi-project repo, which has strict checkstyle ...
0
votes
1
answer
119
views
How to make my own custom checkstyle checks available in eclipse checkstyle plug-in
I want to have my own check "check that method identifier of class X is not longer than 18 chars". I want eclipse to show violations to my custom rule in the IDE as warning or error.
However ...