pmd/pmd

Javapmd.github.io

An extensible multilanguage static code analyzer.

code-analysiscode-qualitystatic-analysisstatic-code-analysislinterjavaapexplsqlswifthacktoberfest
스타 성장
스타
5.5k
포크
1.6k
주간 성장
+8
이슈
560
2k4k
2012년 9월2017년 5월2022년 1월2026년 9월
아티팩트Maven
README

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?

🤝️ 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

관련 저장소
Graphify-Labs/graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

PythonPyPIskillApache License 2.0claude-codegraphrag
graphify.com
116.1k11.3k
DeusData/codebase-memory-mcp

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

CMIT Licenseclaude-codecode-analysis
deusdata.github.io/codebase-memory-mcp/
42.7k3.5k
ycm-core/YouCompleteMe

A code-completion engine for Vim

PythonPyPIGNU General Public License v3.0vimcode-completion
ycm-core.github.io/YouCompleteMe/
25.9k2.8k
yusufkaraaslan/Skill_Seekers

Convert documentation websites, GitHub repositories, and PDFs into Claude AI skills with automatic conflict detection

PythonPyPIskillMIT Licenseai-toolsautomation
skillseekersweb.com
14.9k1.5k
wonderwhy-er/DesktopCommanderMCP

This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities

TypeScriptnpmMIT Licenseagentai
desktopcommander.app
9.5k1.2k
universal-ctags/ctags

A maintained ctags implementation

CcliGNU General Public License v2.0ctagscode-navigation
ctags.io
7.3k671
larastan/larastan

⚗️ Adds code analysis to Laravel improving developer productivity and code quality.

PHPPackagistlibraryMIT Licenselaravelphpstan
6.5k506
javaparser/javaparser

Java 1-25 Parser and Abstract Syntax Tree for Java with advanced analysis functionalities.

JavaMavenlibraryOtherjavaparserparser
javaparser.org
6.1k1.3k
rrrene/credo

A static code analysis tool for the Elixir language with a focus on code consistency and teaching.

ElixircliMIT Licenseelixircode-analysis
credo-ci.org
5.2k455
braedonsaunders/codeflow

Paste any GitHub URL → interactive architecture map. See how files connect, find what breaks if you change something. No install, no accounts — runs entirely in your browser.

HTMLappMIT Licensearchitecturebrowser-based
codeflow-five.vercel.app
5.2k768
vitali87/code-graph-rag

The ultimate RAG for your monorepo. Query, understand, and edit multi-language codebases with the power of AI and knowledge graphs

PythonPyPIMIT Licenseaiast
code-graph-rag.com
5.1k668
Kodezi/Chronos

Kodezi Chronos is a debugging-first language model that achieves state-of-the-art results on SWE-bench Lite (80.33%) and 67% real-world fix accuracy, over six times better than GPT-4. Built with Adaptive Graph-Guided Retrieval and Persistent Debug Memory. Model available Q1 2026 via Kodezi OS.

JavaMavenOtherartificial-intelligencebenchmark
chronos.so
4.9k211