builder:TemplateProperties: added
This commit is contained in:
parent
d2a9f6ffa0
commit
e7f30c760b
3 changed files with 39 additions and 3 deletions
|
@ -30,7 +30,5 @@ class OutputProperties {
|
|||
private Map<RuleLevel, String> rulesetFiles;
|
||||
|
||||
/**
|
||||
* Template for Checkstyle XML files.
|
||||
*/
|
||||
private Path checkstyleXmlTemplate;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
package net.kemitix.checkstyle.ruleset.builder;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.nio.file.Path;
|
||||
|
||||
/**
|
||||
* Properties for template files.
|
||||
*
|
||||
* @author Paul Campbell (pcampbell@kemitix.net)
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "template")
|
||||
class TemplateProperties {
|
||||
|
||||
/**
|
||||
* Template for Checkstyle XML files.
|
||||
*/
|
||||
private Path checkstyleXml;
|
||||
|
||||
/**
|
||||
* Template for README.md file.
|
||||
*/
|
||||
private Path readmeTemplate;
|
||||
|
||||
/**
|
||||
* The directory containing the README fragments.
|
||||
*/
|
||||
private Path readmeFragments;
|
||||
}
|
|
@ -6,7 +6,10 @@ output:
|
|||
JAVADOC: checkstyle-3-javadoc.xml
|
||||
TWEAKS: checkstyle-4-tweaks.xml
|
||||
COMPLEXITY: checkstyle-5-complexity.xml
|
||||
checkstyle-xml-template: builder/src/main/resources/checkstyle-template.xml
|
||||
template:
|
||||
checkstyle-xml: builder/src/main/resources/checkstyle-template.xml
|
||||
readme-template: builder/src/main/resources/README-template.md
|
||||
readme-fragments: builder/src/main/resources/rules
|
||||
rules:
|
||||
-
|
||||
name: AbbreviationAsWordInName
|
||||
|
|
Loading…
Reference in a new issue