Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1021: Fix checkstyle warnings by changing the license header template #1027

Merged
merged 2 commits into from
Oct 22, 2019
Merged

#1021: Fix checkstyle warnings by changing the license header template #1027

merged 2 commits into from
Oct 22, 2019

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