Skip to content

Checkstyle#483

Merged
LadyCailin merged 7 commits intoEngineHub:masterfrom
Pieter12345:checkstyle
May 13, 2018
Merged

Checkstyle#483
LadyCailin merged 7 commits intoEngineHub:masterfrom
Pieter12345:checkstyle

Conversation

@Pieter12345
Copy link
Copy Markdown
Contributor

Added maven's checkstyle plugin with a few basic rules and changed code to match these basic rules.
More checks/rules can be added to eventually get and even force consistent code, but as inconsistent as CH source files are currently, this will require quite some work.

Made Tab/whitespace usage consistent.
- Added maven's checkstyle plugin (applies to main and test .java files).
- Added a check for line length <= 120 (currently marked as ignored due to >7000 violations).
- Disallow whitespace indents (force TABs).
- Disallow star imports (import blabla.*).
- Disallow empty blocks ({}).
- Disallow trailing whitespaces/tabs.
- Replaced leading 4-wide whitespaces with tabs.
- Removed/replaced remaining leading whitespaces to maintain consistency.
- Added *'s to multiline docs where they were missing.
Removed trailing whitespaces and tabs.
Replaced star imports with the actually used imports.
- Removed EmptyBlock checkstyle check since it triggered for cases where it is not necessarily bad.
- Removed several empty blocks where they were not necessary.
Disallow whitespaces after '(' anf before ')'.
@LadyCailin LadyCailin merged commit b4993e8 into EngineHub:master May 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants