My Java constants class contains the following line:
public static final List<String> VALID_SUBMISSION_CONTEXT_TYPE_STRINGS = Stream.of(SubmissionContextType.values())
.map(Enum::name)
.collect(Collectors.toList());
My checkstyle configuration has a line length limit of 120 characters, and the above line is within this limit.
I also use lombok @NoArgsConstructor(access = AccessLevel.PRIVATE) on this constants class. The generated lombok code is:
public static final List<String> VALID_SUBMISSION_CONTEXT_TYPE_STRINGS = Stream.of(SubmissionContextType.values()).map(Enum::name).collect(Collectors.toList());
This exceeds 120 characters on the line and causes checkstyle to fail.
Is there a way to tell lombok to restrict the length of lines in the generated code, or to preserve the whitespaces from the source code?