Git Product home page Git Product logo

pmd's Introduction

PMD

Build Status

About

PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, Salesforce.com Apex, XML, XSL. Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code in Java, C, C++, C#, PHP, Ruby, Fortran, JavaScript, Salesforce.com Apex, Perl, Swift.

Source

Our latest source of PMD can be found on GitHub. Fork us!

How to build PMD?

You'll need to have a ~/.m2/toolchains.xml file setup with jdk 1.6 (for pmd 5.3.x), jdk 1.7 (for pmd 5.4.x and pmd 5.5.x) and jdk 1.8 (for some features in pmd 5.5.x). See maven toolchains. A example file can be found here: example-toolchains.xml.

Use maven in the top-level directory:

mvn clean package

This will create the zip files in the directory pmd-dist/target:

cd pmd-dist/target
ls *.zip

That's all !

How to build the documentation (maven site)?

Building the maven site is done with the following commands:

mvn clean install -DskipTests=true
mvn install site site:stage -Psite

You'll find the built site in the directory target/staging/.

Bug Reports

We are using Sourceforge for bug tracking. Please file your bugs at https://sourceforge.net/p/pmd/bugs/.

Pull Requests

Pull requests are always welcome: https://github.com/pmd/pmd/pulls

News and Website

More information can be found on our Website and on SourceForge.

pmd's People

Contributors

acanda avatar adangel avatar albfernandez avatar amitpd avatar andrey81inmd avatar astillich-igniti avatar bric3 avatar daleanson avatar dionisioc avatar dtecheira avatar fjalvingh avatar hooperbloob avatar jbaris avatar josemanuelrolon avatar jsotuyod avatar kshantaramanufl avatar larrydiamond avatar marob avatar mkordas avatar mrb avatar robertwhitebit avatar robinst avatar rpelisse avatar rsalvador avatar ryan-gustafson avatar snajberk avatar sturton avatar vampire avatar victorbucutea avatar wolfs avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.