O'Reilly logo

Jenkins Continuous Integration Cookbook by Alan Berg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Activating more PMD rulesets

PMD has rules for capturing particular bugs. It bundles those rules into rulesets. For example, there is a ruleset with a theme about Android programming another for code size or design. By default, three non-controversial PMD rulesets are measured:

  • Basic: Obvious practices that every developer should follow, such as don't ignore the Exceptions that are caught
  • Unusedcoded: Finds code that is never used lines that can be eliminated, avoiding waste and aiding readability
  • Imports: Spots unnecessary imports

This recipe shows you how to enable more rules. The main risk is that the extra rules generate a lot of false positives, making it difficult to see real defects. The benefit is that you will capture a wider range of defects, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required