You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Checkstyle for Automated Code Style Enforcement #399
Add Checkstyle to the project to enforce consistent code formatting and style across the codebase, preventing the need for manual formatting PRs like #392.
I think Spotless plugin would be a better option, what do you think? Besides enforcing, it also auto-formats code. I have had to work with checkstyle in the past and the dev experience feels a bit clunky.
The project can be re-formatted all at once and have that commit in .git-blame-ignore-revs. Another approach also supported by Spotless is to do it in a gradual fashion and enforce formatting only on files that have been modified past a certain tag.
I can help out with a PR. The project needs to chose a formatting style first. I personally like the prettier java format (maintained by JHipster).
Activity
crazybolillo commentedon Jul 18, 2025
I think Spotless plugin would be a better option, what do you think? Besides enforcing, it also auto-formats code. I have had to work with checkstyle in the past and the dev experience feels a bit clunky.
The project can be re-formatted all at once and have that commit in
.git-blame-ignore-revs. Another approach also supported by Spotless is to do it in a gradual fashion and enforce formatting only on files that have been modified past a certain tag.I can help out with a PR. The project needs to chose a formatting style first. I personally like the prettier java format (maintained by JHipster).
dasarathirout commentedon Jul 20, 2025
@tzolov spring-javaformat is present in pom https://github.com/modelcontextprotocol/java-sdk/blob/main/pom.xml#L113-L126. we can set to goal apply spring-javaformat:apply. It will execute when we ran mvn install command to reformat the code
PR:#418
dasarathirout commentedon Jul 20, 2025
/assign @dasarathirout