See Jenkins Shared Library for details.
The source of this documentation is located in the antora folder at https://github.com/opendevstack/ods-jenkins-shared-library/tree/master/docs/modules/jenkins-shared-library/pages.
Use ./gradlew build to run the code formatting checks and tests. The code style checks are done via CodeNarc. Its ruleset is located in codenarc.groovy. The Gradle build target runs both codenarcMain and codenarcTest. codeNarcMain is not allowed to fail (only the configured amount of violations of priority 3 are allowed), see the configuration in build.gradle. The found violations are saved to an HTML report under build/reports/codenarc.