Closed stevecl5 closed 3 years ago
created a feature branch for this issue
The two main code styles supported by Checkstyle are Sun's Java Style and Google's Java Style. Both of these have off-the-shelf configuration files for easy integration into the Maven build process. These configurations can also be modified for our purposes if we want to modify or suppress certain checks.
I am using Sun's Java Style which is based on the official Java Coding Conventions as the starting point for a custom Checkstyle configuration. I found that Google's Style guide was overly restrictive and contained some unusual style choices (such as 2-space indentations).
Current modifications to sun_checks.xml:
Additional modifications:
Note: Setting max line length to 100 allows for side-by-side code comparison and may improve viewing on small screens.
Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. It is available as a Maven plugin, allowing for automation of code style checking as part of the build process.