GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pmd/pmd: An extensible multilanguage static code analyzer.

BranchesTags
Open more actions menu

Latest commit

 

History

32,110 Commits
32,110 Commits

Folders and files

NameName
Last commit message
Last commit date
.ci
.ci
 
 
.github
.github
 
 
.idea
.idea
 
 
.mvn/wrapper
.mvn/wrapper
 
 
docs
docs
 
 
pmd-ant
pmd-ant
 
 
pmd-apex
pmd-apex
 
 
pmd-cli
pmd-cli
 
 
pmd-coco
pmd-coco
 
 
pmd-core
pmd-core
 
 
pmd-cpp
pmd-cpp
 
 
pmd-cs
pmd-cs
 
 
pmd-css
pmd-css
 
 
pmd-dart
pmd-dart
 
 
pmd-dist
pmd-dist
 
 
pmd-doc
pmd-doc
 
 
pmd-fortran
pmd-fortran
 
 
pmd-gherkin
pmd-gherkin
 
 
pmd-go
pmd-go
 
 
pmd-groovy
pmd-groovy
 
 
pmd-html
pmd-html
 
 
pmd-java
pmd-java
 
 
pmd-javascript
pmd-javascript
 
 
pmd-jsp
pmd-jsp
 
 
pmd-julia
pmd-julia
 
 
pmd-kotlin
pmd-kotlin
 
 
pmd-lang-dummy
pmd-lang-dummy
 
 
pmd-lang-test
pmd-lang-test
 
 
pmd-languages-deps
pmd-languages-deps
 
 
pmd-lua
pmd-lua
 
 
pmd-matlab
pmd-matlab
 
 
pmd-modelica
pmd-modelica
 
 
pmd-objectivec
pmd-objectivec
 
 
pmd-perl
pmd-perl
 
 
pmd-php
pmd-php
 
 
pmd-plsql
pmd-plsql
 
 
pmd-python
pmd-python
 
 
pmd-ruby
pmd-ruby
 
 
pmd-rust
pmd-rust
 
 
pmd-scala-modules
pmd-scala-modules
 
 
pmd-swift
pmd-swift
 
 
pmd-test-schema
pmd-test-schema
 
 
pmd-test
pmd-test
 
 
pmd-tsql
pmd-tsql
 
 
pmd-ui
pmd-ui
 
 
pmd-velocity
pmd-velocity
 
 
pmd-visualforce
pmd-visualforce
 
 
pmd-xml
pmd-xml
 
 
.all-contributorsrc
.all-contributorsrc
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
SPONSORS.md
SPONSORS.md
 
 
antlr4-wrapper.xml
antlr4-wrapper.xml
 
 
code_of_conduct.md
code_of_conduct.md
 
 
do-release.sh
do-release.sh
 
 
javacc-wrapper.xml
javacc-wrapper.xml
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
pom.xml
pom.xml
 
 

Repository files navigation

PMD - source code analyzer

PMD Logo

Join the chat Build Snapshot Maven Central Reproducible Builds Coverage Status Codacy Badge Contributor Covenant Documentation (latest) Gurubase Docker Image Version

PMD is an extensible multilanguage static code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It's mainly concerned with Java and Apex, but supports 16 other languages. It comes with 400+ built-in rules. It can be extended with custom rules. It uses JavaCC and Antlr to parse source files into abstract syntax trees (AST) and runs rules against them to find violations. Rules can be written in Java or using a XPath query.

Currently, PMD supports Java, JavaScript, Salesforce.com Apex and Visualforce, Kotlin, Swift, Modelica, PL/SQL, Apache Velocity, JSP, WSDL, Maven POM, HTML, XML and XSL. Scala is supported, but there are currently no Scala rules available.

Additionally, it includes CPD, the copy-paste-detector. CPD finds duplicated code in Coco, C/C++, C#, CSS, Dart, Fortran, Gherkin, Go, Groovy, HTML, Java, JavaScript, JSP, Julia, Kotlin, Lua, Matlab, Modelica, Objective-C, Perl, PHP, PL/SQL, Python, Ruby, Salesforce.com Apex and Visualforce, Scala, Swift, T-SQL, Typescript, Apache Velocity, WSDL, XML and XSL.

đŸš€ī¸ Installation and Usage

Download the latest binary zip from the releases and extract it somewhere.

Execute bin/pmd check or bin\pmd.bat check.

See also Getting Started

Demo:

This shows how PMD analyses openjdk:

Demo

There are plugins for Maven and Gradle as well as for various IDEs. See Tools / Integrations

â„šī¸ How to get support?

  • How do I? -- Ask a question on StackOverflow or on discussions.
  • I got this error, why? -- Ask a question on StackOverflow or on discussions.
  • I got this error and I'm sure it's a bug -- file an issue.
  • I have an idea/request/question -- create a new discussion.
  • I have a quick question -- ask in our Gitter room or our PMD Guru at Gurubase.
  • Where's your documentation? -- https://docs.pmd-code.org/latest/

đŸ¤ī¸ Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

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

For details, see How to contribute to PMD.

The rule designer is developed over at pmd/pmd-designer. Please see its README for developer documentation.

đŸ’ĩī¸ Financial Contributors

Become a financial contributor and help us sustain our community. Contribute

âœ¨ī¸ Contributors

This project follows the all-contributors specification. Contributions of any kind welcome!

See credits for the complete list.

đŸ“ī¸ License

BSD Style

About

An extensible multilanguage static code analyzer.

pmd.github.io

Topics

apexcode-analysiscode-qualityhacktoberfestjavalinterplsqlstatic-analysisstatic-code-analysisswift

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

5.5k stars

Watchers

134 watching

Forks

1.6k forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.