Skip to content

rody/docker-pmd-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PMD docker image (rawdee/pmd)

Docker image for PMD, an extensible cross-language static code analyzer.

This image can be used to run PMD (static code analysis) and CPD (copy paste detection).

Getting started

Prerequisites

In order to run this container you'll need docker installed.

Usage

ex: Java analysis with custom rulesets

docker run -v $PWD:/src rawdee/pmd -language java -dir . -rulesets ./my-rulesets.xml

ex: Apex analysis with builtin rulesets

docker run -v $PWD:/src rawdee/pmd -language apex -dir . -rulesets rulesets/apex/ruleset.xml

Build Args

  • PMD_VERSION - PMD version used to build this image. If omitted, the hardcoded version in the Dockerfile will be downloaded.

Contributing

The Github repository is located at rody/docker-pmd-image

Versioning

We use PMD version numbers to version the images.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.