Skip to content

Conversation

vanogrid
Copy link
Contributor

Issue #1021

Google's Checkstyle ruleset doesn't play well with the javadoc license headers, because it demands the first line to have a dot at the end, a <p> tag at the beginning of a paragraph, etc.

I changed the license header style to the SLASHSTAR_STYLE, provided with the license-maven-plugin (which is also the default one now, but after v3.0 there is no new release yet). Checkstyle didn't like that one either and wanted the package name to be "separated from the previous statement" by a blank line, so I ended up creating a custom license header with this blank line added (license-plugin-header-style.xml). This fixed the issues with the license header. There were minimal changes in the code and now the Checkstyle warnings are less than half (2,8k). The issue is not done yet, but this should be a good start.

@iluwatar iluwatar merged commit 4904d7e into iluwatar:master Oct 22, 2019
@iluwatar
Copy link
Owner

@vanogrid thanks, this is a great step forward in solving that issue!

@iluwatar iluwatar added this to the 1.22.0 milestone Oct 22, 2019
@iluwatar
Copy link
Owner

New problem was detected, see #1037

@vanogrid
Copy link
Contributor Author

Sorry about that, I will have a look asap.

@vanogrid vanogrid deleted the fix-checkstyle-warnings branch October 26, 2019 12:32
@iluwatar
Copy link
Owner

No problem @vanogrid. Thanks for looking into it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants