Several examples of usage for diKTat project: https://github.com/cqfn/diKTat
- maven: example of usage diktat with maven plugin (see
pom.xml
). To run it use:$ mvn antrun:run@diktat
. - gradle: example of usge diktat with gradle plugin (see
build.gradle.kts
). To run it use:$ gradle diktatCheck
Note, that you can specify and put diktat-analysis.yml
that contains configuration of diktat in the parent directory of your project on the same level where build.gradle/pom.xml is stored.