You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Annotation value with long list of element format the code so that Checkstyle fails #483
publicrecordConventionChecksProperties(@DefaultValue("true") booleanenabled,
@NestedConfigurationProperty@DefaultValueWorkflowworkflow) {
/** * Properties for workflow conventions. * * @param fileNames list of required workflow file names * @param minVersion minimum version of the workflow generator used to generate * required workflows */publicrecordWorkflow(@DefaultValue( {
"release-train-build.yml", "release-train-join.yml", "release-train-leave.yml", "release-train-ready.yml",
"release-train-retry.yml", "release-train-test.yml" }) List<String> fileNames,
@NullableVersionminVersion){
}
}
Checksyle fails around the @DefaultValue for filenames (line 47 is the annotation and 50 is where the minVersion is defined.
[ant:checkstyle] [ERROR] /Users/snicoll/workspace/work/release-orchestrator/src/main/java/io/spring/releaseorchestrator/convention/ConventionChecksProperties.java:47:45: '(' is followed by whitespace. [SpringParenPad]
[ant:checkstyle] [ERROR] /Users/snicoll/workspace/work/release-orchestrator/src/main/java/io/spring/releaseorchestrator/convention/ConventionChecksProperties.java:50:54: '{' is not preceded with whitespace. [WhitespaceAround]
Activity