awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
pmd avatar

pmd/pmd

0
View on GitHub↗
5,425 stars·1,564 forks·Java·24 viewspmd.github.io↗

Pmd

PMD is a multi-language static code analyzer used to identify programming flaws, unused variables, and dead code without executing the program. It functions as a code smell detector and coding standard enforcer, ensuring source code adheres to specific naming conventions, structural requirements, and project style guides.

The project features an XPath-based rule engine that allows users to define custom analysis patterns using queries against an abstract syntax tree. It also includes a copy-paste detector to identify duplicated code blocks across multiple files and a visual rule designer for creating and testing custom detection patterns.

The analysis surface covers bug detection, the identification of maintainability issues to reduce technical debt, and the verification of test implementations. It also provides capabilities for identifying overly complex methods and excessive parameter lists.

Features

  • Static Code Analysis - Provides automated scanning of source code to detect bugs, vulnerabilities, and maintainability issues without execution.
  • AST Querying - Uses XML path language to locate specific nodes or patterns within the AST for rule validation.
  • AST XPath Engines - Provides a system for defining custom code analysis patterns using XPath queries against an abstract syntax tree.
  • Static Code Analyzers - Identifies potential bugs, unused variables, and vulnerabilities through automated multi-language linting.
  • Code Smell Detectors - Flags overly complex methods and design patterns that indicate technical debt or poor design.
  • Common Bug Detection - Analyzes source code to identify common programming bugs, unused variables, and logical errors.
  • Abstract Syntax Tree Parsing - Implements the conversion of source code into a structured tree representation for static analysis.
  • AST Visitor Patterns - Implements the visitor design pattern for programmatically traversing abstract syntax trees.
  • Coding Standards Enforcement - Ensures source code adheres to specific naming conventions, structural requirements, and project style guides.
  • Custom Analysis Rules - Provides a framework for defining custom metadata-driven rules to identify specific patterns in source code.
  • Language Support Plugins - Uses modular plugins to extend the analyzer's capability to parse additional programming languages.
  • Static Analysis Rule Engines - Provides a rule engine for defining custom code analysis patterns that inspect source code and metadata.
  • Code Duplication Reduction - Locates redundant blocks of logic and copy-paste repetitions across files to facilitate code consolidation.
  • Token-Based Duplicate Detectors - Identifies identical or near-identical code blocks by comparing tokenised source sequences across multiple files.
  • Detection Tools - Scans source files across multiple languages to find and flag copy-paste redundancies and redundant logic blocks.
  • Visual Rule Designers - Provides a visual interface for creating and testing custom analysis rules to identify specific code patterns.
  • Java-Based Rule Implementation - Provides the ability to implement complex linguistic validation logic by extending Java classes.
  • Technical Debt Analyzers - Identifies software rot and technical debt through a combination of complexity and code duplication analysis.
  • Copy-Paste Detectors - Identifies duplicated code blocks across multiple files to reduce redundancy and maintenance effort.
  • Code Analysis - Source code analysis for finding bad coding practices.
  • Static Analysis Tools - Source code analyzer for finding bad coding practices.

Star history

Star history chart for pmd/pmdStar history chart for pmd/pmd

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does pmd/pmd do?

PMD is a multi-language static code analyzer used to identify programming flaws, unused variables, and dead code without executing the program. It functions as a code smell detector and coding standard enforcer, ensuring source code adheres to specific naming conventions, structural requirements, and project style guides.

What are the main features of pmd/pmd?

The main features of pmd/pmd are: Static Code Analysis, AST Querying, AST XPath Engines, Static Code Analyzers, Code Smell Detectors, Common Bug Detection, Abstract Syntax Tree Parsing, AST Visitor Patterns.

Which projects share features with pmd/pmd?

Projects with overlapping indexed features include: google/error-prone — Error Prone is a static code analyzer and Java compiler extension that identifies common programming mistakes during… pylint-dev/pylint — Pylint is a static code analyzer for Python that scans source code for errors, coding standard violations, code… jshint/jshint — JSHint is a JavaScript static analysis tool and linter designed to detect errors and enforce coding standards. It… detekt/detekt — Detekt is a static analysis tool, code quality linter, and complexity analyzer for Kotlin source code. It functions as… rrrene/credo — Credo is a static analysis tool and linter for Elixir. It functions as a code quality analyzer that scans source code… checkstyle/checkstyle — Checkstyle is a Java static analysis tool and linter designed to identify and enforce coding standards and best…

Projects sharing features with Pmd

These projects share indexed features with Pmd. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • google/error-pronegoogle avatar

    google/error-prone

    7,182View on GitHub↗

    Error Prone is a static code analyzer and Java compiler extension that identifies common programming mistakes during the build process. It functions as a compiler wrapper that flags potential errors as compile-time failures to prevent bugs from reaching execution. The tool integrates directly into the Java compilation workflow to provide compile-time validation. It allows for the definition of custom linting rules and analysis checks to enforce specific coding standards and detect prohibited API usage. The system utilizes abstract syntax tree analysis and type-aware pattern matching to inspe

    Javajavastatic-analysis
    View on GitHub↗7,182
  • pylint-dev/pylintpylint-dev avatar

    pylint-dev/pylint

    5,685View on GitHub↗

    Pylint is a static code analyzer for Python that scans source code for errors, coding standard violations, code smells, and type-related issues without executing the program. It functions as a plugin-based linter framework, allowing users to extend its analysis capabilities with custom or third-party checks for project-specific rules and framework support. The tool also includes a duplicate code detector that identifies identical or near-identical code blocks across a project to help reduce redundancy. Beyond its core linting functionality, Pylint can generate UML class and package diagrams f

    Pythonclosembercode-qualityhacktoberfest
    View on GitHub↗5,685
  • jshint/jshintjshint avatar

    jshint/jshint

    9,064View on GitHub↗

    JSHint is a JavaScript static analysis tool and linter designed to detect errors and enforce coding standards. It functions as a syntax validator that scans source code to identify potential logic problems and programming mistakes before the code is executed. The tool provides a command line interface for analyzing files and directories. It supports the export of analysis results into standardized formats such as Checkstyle for integration with external build tools. Analysis is managed through a system of linting rule management and environment global configuration. This includes the ability

    JavaScript
    View on GitHub↗9,064
  • detekt/detektdetekt avatar

    detekt/detekt

    6,977View on GitHub↗

    Detekt is a static analysis tool, code quality linter, and complexity analyzer for Kotlin source code. It functions as a code smell detector and static scanner designed to identify potential bugs, design flaws, and violations of coding standards without executing the program. The tool differentiates itself through the use of issue baselining, which allows users to create a snapshot of existing legacy code issues to filter out old violations and focus on preventing new regressions. It further supports extensibility via a plugin-based system that allows for the integration of custom rule sets a

    Kotlin
    View on GitHub↗6,977
Compare all 30 related projects→