Skip to content

Automated Quality Assurance configuration for Java Projects built with Gradle

License

Notifications You must be signed in to change notification settings

waitwhatglitch/testgfsd

 
 

Repository files navigation

Java Automated Quality Assurance

This Gradle plugin applies Checkstyle, PMD, CPD, SpotBugs, and JaCoCo under the hood. More static checkers may come in the future. All checkers' configuration have been customized to match my requirements.

These settings can be changed as you would when configuring the checkers, this plugin pre-configures them, but does not force anything.

How to use

plugins {
    id("org.danilopianini.gradle-java-qa") version "<SELECT THE VERSION>"
}

Once done, checkstyle, PMD, FindBugs, and CPD will be applied and pre-configured aggressively, but not exceedingly so, in particular, most rules with arbitrary numbers (e.g. "too many methods") have been either suppressed or configured permissively.

The default configuration can be modified as would have for the normal plugin application. Moreover, in the case of checkstyle, it is possible to add rules and exception without the need to overwrite the proposed default.

Adding configuration to checkstyle

Pieces of configuration can be added to checkstyle without the need to override the project default configuration.

javaQA {
    checkstyle {
        additionalSuppressions.set("Path to suppressions, or string with the suppressions")
        additionalConfiguration("Path to a file with additional rules, or a string with the same content")
    }
}

About

Automated Quality Assurance configuration for Java Projects built with Gradle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 90.2%
  • Java 6.5%
  • JavaScript 3.3%