Ivan Zlenko created HDDS-12338:
----------------------------------

             Summary: PMD Checks in Ozone
                 Key: HDDS-12338
                 URL: https://issues.apache.org/jira/browse/HDDS-12338
             Project: Apache Ozone
          Issue Type: Epic
          Components: build
            Reporter: Ivan Zlenko
            Assignee: Ivan Zlenko


It will be a good idea to introduce PMD static analysis to the project 
alongside with Spotbugs. 
Even though they potentially can share some checks, PMD still have a lot to 
offer us. Namely: 
* MissingOverride - Spotbug can only verify that correct javaDoc exists, and 
not that Override annotation is missing.
* UnusedAssignment
* UnusedFormalParameter
* UnusedLocalVariable
* UnusedPrivateField
And many others that can be found here: 
https://docs.pmd-code.org/latest/pmd_rules_java_bestpractices.html

I suggest to add PMD to the project and gradually enable rule by rule. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to