Need advice about which tool to choose?Ask the StackShare community!

PMD

41
101
+ 1
0
SonarQube

1.7K
1.9K
+ 1
52
Add tool

PMD vs SonarQube: What are the differences?

What is PMD? An extensible cross-language static code analyzer. It is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It includes CPD, the copy-paste-detector.

What is SonarQube? Continuous Code Quality. SonarQube provides an overview of the overall health of your source code and even more importantly, it highlights issues found on new code. With a Quality Gate set on your project, you will simply fix the Leak and start mechanically improving.

PMD and SonarQube can be categorized as "Code Review" tools.

Some of the features offered by PMD are:

  • supports multiple languages
  • enforce a coding standard for your codebase
  • built-in checks

On the other hand, SonarQube provides the following key features:

  • Multi-language
  • Detect tricky issues
  • Security analysis

PMD and SonarQube are both open source tools. It seems that SonarQube with 3.88K GitHub stars and 1.09K forks on GitHub has more adoption than PMD with 2.42K GitHub stars and 830 GitHub forks.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of PMD
Pros of SonarQube
    Be the first to leave a pro
    • 26
      Tracks code complexity and smell trends
    • 16
      IDE Integration
    • 9
      Complete code Review
    • 1
      Difficult to deploy

    Sign up to add or upvote prosMake informed product decisions

    Cons of PMD
    Cons of SonarQube
      Be the first to leave a con
      • 7
        Sales process is long and unfriendly
      • 7
        Paid support is poor, techs arrogant and unhelpful
      • 1
        Does not integrate with Snyk

      Sign up to add or upvote consMake informed product decisions

      What is PMD?

      It is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It includes CPD, the copy-paste-detector.

      What is SonarQube?

      SonarQube provides an overview of the overall health of your source code and even more importantly, it highlights issues found on new code. With a Quality Gate set on your project, you will simply fix the Leak and start mechanically improving.

      Need advice about which tool to choose?Ask the StackShare community!

      Jobs that mention PMD and SonarQube as a desired skillset
      CBRE
      United States of America Texas Richardson
      What companies use PMD?
      What companies use SonarQube?
      See which teams inside your own company are using PMD or SonarQube.
      Sign up for StackShare EnterpriseLearn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with PMD?
      What tools integrate with SonarQube?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      What are some alternatives to PMD and SonarQube?
      FindBugs
      It detects possible bugs in Java programs. Potential errors are classified in four ranks: scariest, scary, troubling and of concern. This is a hint to the developer about their possible impact or severity.
      Checkstyle
      It is a development tool to help programmers write Java code that adheres to a coding standard. It automates the process of checking Java code to spare humans of this boring (but important) task. This makes it ideal for projects that want to enforce a coding standard.
      ESLint
      A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
      Prettier
      Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
      Code Climate
      After each Git push, Code Climate analyzes your code for complexity, duplication, and common smells to determine changes in quality and surface technical debt hotspots.
      See all alternatives