# Code Format
We use [Prettier](https://prettier.io/) (more exactly the [maven-plugin](https://github.com/HubSpot/prettier-maven-plugin)) for formatting Java Code.
Please include them as a dev dependency in the maven projects by adding this in the `pom.xml`:
```xml
...
write
...
...
com.hubspot.maven.plugins
prettier-maven-plugin
0.16
1.5.0
120
2
false
true
true
src/main/java/**/*.java
src/test/java/**/*.java
validate
${plugin.prettier.goal}
...
```
To check if the code is in right format run `mvn prettier:check` (Can be also used in github workflows, to check if code is formatted).
To format the code run `mvn prettier:write`.