-
Notifications
You must be signed in to change notification settings - Fork 535
Description
I just found that Dataverse already have a checkstyle.xml. Most of the rules are commented out, but even the remaining produce 200+ reported violation of the ruleset.
The command to check errors:
mvn clean checkstyle:checkstyle
This generates the HTML page 'target/site/checkstyle.html'.
It is clear if you open any Java code, that the number of commiters working with different coding style, so the result is not uniformed. Clearer code does not improve the software, but helps lowering the burden of maintenance and making the code more readable. My past experiences with code clearing efforts suggest, that this is an ongoing process: you have to run checks again and again, and clearing code constantly.
Code cleaning on the other hand is an ideal task if you, as a novice in the community just would like to test the water and try to understand the structure of the code. It doesn't require of deep knowledge of the code, and still, you can contribute with some useful thing.
I see three subtasks here:
- run check, and submit pull requests for the clearer code
- extend the checks one by one, increasing the number of checkstyle ruleset
- improving the documentation about the coding style in Dataverse manual (http://guides.dataverse.org/en/4.9.4/developers/coding-style.html)