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…
PMD source code analyzer
11–20 of 36 posts
Re: PMD source code analyzer
#12Since 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…
Re: PMD source code analyzer
#13Re: PMD source code analyzer
#14Here's a shameless plug for https://coala.io/ which is a sort of a meta-linter — coala can run PMD on your code along with ~100 other linters and code checkers.
Re: PMD source code analyzer
#15I'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
#16Re: PMD source code analyzer
#17Here's a shameless plug for https://coala.io/ which is a sort of a meta-linter — coala can run PMD on your code along with ~100 other linters and code checkers.
If you're a Go programmer, there's a Go-specific metalinter: https://github.com/alecthomas/gometalinter
With coala you need to configure which linters run on which files, and we recognize this as a thing we can improve upon. We're soon going to ship a feature which will allow configuration to just specify where the files are (e.g. 'src/*.py') and what aspects to check (e.g. 'syntax,smells,duplication,security'). Then coala will decide which tools are appropriate, get them from pip/npm/wherever, and run them.
Re: PMD source code analyzer
#18Here's a shameless plug for https://coala.io/ which is a sort of a meta-linter — coala can run PMD on your code along with ~100 other linters and code checkers.
Drat, I liked the name "Red Herring".
Re: PMD source code analyzer
#19I've checked out Coala, I've been using FindBugs and SonarQube in the past, and sadly, all of the solutions I've seen miss support for Lisp language family. I could use some kind of linter for my Common Lisp code.
Re: PMD source code analyzer
#20I rarely write a bad code, just joking! But has anyone used the emacs plug-in for it? And is it any good?