Live data from Hacker News

PMD source code analyzer

pmd.github.io

1–10 of 36 posts

Re: PMD source code analyzer

#2
Wow, crazy to see this project still alive and thriving. I was using it 10+ years ago when I worked exclusively in Java. It was great to find those "obvious" issues that slip in that you didn't notice when you should of. I think I had it as a SVN pre-commit hook at one point.

In fact, the lead dev wrote a book "PMD Applied" and I wrote a review of it: http://caseysoftware.com/blog/book-review-pmd-applied

It's since been implemented in PHP too: https://phpmd.org/

Re: PMD source code analyzer

#3
Since it is not on the front page and probably everybody wants to know. Here is what it claims to do.

"PMD scans source code in Java and other languages and looks for potential problems like:

- Possible bugs - empty try/catch/finally/switch statements

- Dead code - unused local variables, parameters and private methods

- Suboptimal code - wasteful String/StringBuffer usage Overcomplicated expressions - unnecessary if statements, for loops that could be while loops

- Duplicate code - copied/pasted code means copied/pasted bugs"

[0] http://pmd.sourceforge.net/snapshot/

Re: PMD source code analyzer

#4
I'm not sure why this is on the frontpage since PMD (like Checkstyle and FindBugs) has been around for years. Still If your not familiar with PMD you should take a look. Anyway these days you probably want to invest in setting up SonarQube which is a superior tool in many ways (multi-language code analysis with webbassd dashboard etc)

Re: PMD source code analyzer

#10

Wow, crazy to see this project still alive and thriving. I was using it 10+ years ago when I worked exclusively in Java. It was great to find those "obvious" issues that slip in that you didn't notice when you should of. I think I had it as a SVN pre-commit hook at one point. In fact, the lead dev wrote a book "PMD Applied" and I wrote a review of it: http://caseysoftware.com/blog/book-review-pmd-applied It's since b…

yeah, nice to see PMD still getting some love. A very well implemented tool that just does what it does awesomely well.
Post reply on HN