Closed fabian-froehlich closed 2 years ago
You should be able to add custom directories via the inputGlobs
configuration parameter. For example:
<inputGlobs>
<inputGlob>src/main/java/**/*.java</inputGlob>
<inputGlob>src/test/java/**/*.java</inputGlob>
<inputGlob>src/integration-test/java/**/*.java</inputGlob>
</inputGlobs>
We format our code with maven
mvn prettier:write
Unfortunetly the maven plugin does not work in our gitlab-ci pipeline hence we use the npm package with
prettier --check --config ./.prettierrc.yml --no-editorconfig "**/*.java"
in gitlab-ci.That way we figured out, that the npm package does find issues within the folder /src/integration-test/java. Those files seems to be not formatted with the maven plugin. The
integration-test
folder is created withbuild-helper-maven-plugin
.Snipped from pom.xml