DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Interview: PMD Code Analyzer for NetBeans IDE

Interview: PMD Code Analyzer for NetBeans IDE

Geertjan Wielenga user avatar by
Geertjan Wielenga
·
Jan. 06, 14 · Java Zone · Interview
Like (0)
Save
Tweet
11.27K Views

Join the DZone community and get the full member experience.

Join For Free
gianluca costa is a software developer from italy. creating software is both his job and passion. his favorite areas of interest in the it sector are software engineering, programming languages, and build infrastructures.

he's also the author of easypmd , a netbeans plugin that can be downloaded here:

http://plugins.netbeans.org/plugin/52534/easypmd-4

hi gianluca. what is easypmd?

easypmd is a plugin that integrates the pmd code analyzer into netbeans ide.

in other words, it scans source files for violations of style rules that the developer has chosen to apply and reports the results both in the action items window and in the code editor itself, so as to provide complete and updated monitoring.



(click the image above to enlarge it.)

how is easypmd different to findbugs and other similar tools?


easypmd enables developers to employ pmd within netbeans ide, which means that, for example, acquired knowledge such as custom rules and rule sets created for pmd in other contexts, such as ant and maven, can be easily reused in the visual environment of the ide.

furthermore, anyone interested in pmd can quickly try it out in netbeans ide using easypmd.

that said, the choice of tools mainly depends on the developer's personal preferences and on their business requirements.

can you name some specific easypmd features that you are especially happy or proud of?

apart from the basic idea around which easypmd revolves, that is, the centralized reporting of pmd violations and the glyphs shown next to code editor lines causing such violations, i'd say that my favourite features are:
  • visual customization of rulesets and of the related classpath. easypmd enables you to add rulesets by letting you choose among the predefined ones provided by pmd, as well as to add your own rulesets. in this case, the management of the required classpath is greatly simplified by the visual user interface.
  • regex-based scanning. one can tell easypmd which files to include into or exclude from scanning, on the basis of regular expressions. a predefined set of regexes, covering the most common cases, is provided, both as examples and to simplify the task.
  • profiles. developers can create as many profiles as they want, and every profile contains a fully-customized set of all the plugin options that can be changed just by switching to another profile.
  • flexibility. easypmd's options let you configure both the underlying pmd engine and the plugin itself, for example, how violations are reported.


  • speed and reliability. easypmd is fast, as it's based on a 2-level cache (both in memory and on disk), and it's becoming more and more robust, release after release.
how does one get started with easypmd?

easypmd should appear in the available plugins list in the netbeans plugin manager in netbeans ide 7.4.



furthermore, i have published a getting started tutorial, currently in english and french , to explain in detail how to install easypmd and how to get started with it.

http://gianlucacosta.info/software/easypmd/?tab=tabs-videos

the videos above are shown in the videos section of easypmd's home page.

finally, for those wishing to employ custom rulesets, i have updated the article " writing custom rulesets for easypmd ", which explains how to create a new ruleset and how to plug it into easypmd 4.
PMD (software) NetBeans Integrated development environment Interview (journalism)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How To Migrate From ECS to EKS and the #1 Trick To Make EKS Easier
  • CockroachDB and Deno: Combining Two “Quick to Start” Technologies
  • What You Need to Know to Debug a Preempted Pod on Kubernetes
  • Querydsl vs. JPA Criteria - Introduction

Comments

Java Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo