Today I would throw some questions related to writing clean code, automation, static code analysis and see if you are with me in this exciting journey:
Today we would discuss about PMD, an open source cross language static code analyzer tool.
In this article, we would discuss below points regarding PMD:
1. Overview
2. Configuring PMD for a Maven Project
3. Rule sets Overview
4. Running PMD
5. Example
5. Conclusion
Let's start our journey to explore PMD in some details!!
- Is it practically possible to remember each and every code convention rules , best practices, bad practices, basic design principles while writing codes ?
- Is it possible for code reviewers to inspect every lines of code to find code flaws ?
- Is it smart thing for code reviewers to waste their time, effort and energy to find code flaws related to conventions, bad practices, potential bugs, dead code, unused code and so forth when they could do so much more on the front of finding architecture, design, performance related issues ?
- Is it good to find small bugs in UAT or QA instead of finding at development phase?
- Is it not a smart move to use open source tools to automate the process of reports generation based on customized rule sets?
Today we would discuss about PMD, an open source cross language static code analyzer tool.
In this article, we would discuss below points regarding PMD:
1. Overview
2. Configuring PMD for a Maven Project
3. Rule sets Overview
4. Running PMD
5. Example
5. Conclusion
Let's start our journey to explore PMD in some details!!