Copy configs task¶
initQualityConfig task
Plugin contains predefined configurations for all plugins.
During execution default files are copied into $buildDir/quality-configs
(if no custom user configs provided).
If you want to customize default configs then use the following task to copy everything into project:
$ gradlew initQualityConfig
It will copy all configs into configured (quality.configDir
) folder (will not override existing configs).
gradle\ config\ checkstyle\ checkstyle.xml codenarc\ codenarc.xml cpd\ cpdhtml.xslt pmd\ pmd.xml spotbugs\ exclude.xml html-report-style.xsl
Task copies all configs, but you may remove all files you don't want to customize (plugin will use default versions for them). File names are important: if you rename files plugin will not find them and use defaults.
Configuration files contain all possible rules. Not used rules are commented (or excluded).