# PMD

Identify risky Java source patterns

Choose a ruleset for unused code, error-prone patterns and design limits. Review violations at the source level and test custom rules against minimal fixtures.

Category: Code quality
Languages: Java, Apex, Kotlin

## Standard evidence

Rubric v1 · 3/8 verified · 5 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — AvoidBranchingStatementAsLastInLoop identifies a terminal branch inside a loop, a concrete risky Java control-flow pattern. Reviewed 2026-11-28. [Source](https://docs.pmd-code.org/latest/pmd_rules_java_errorprone.html)
- **Measurement** (verified) — PMD check processes specified source and rulesets, filters by priority and emits rule violations in the chosen report format. Reviewed 2026-11-28. [Source](https://docs.pmd-code.org/latest/pmd_userdocs_cli_reference.html)
- **Conformance** (unknown) — No reviewed evidence is recorded for this dimension.
- **CI enforcement** (unknown) — No reviewed evidence is recorded for this dimension.
- **Getting started** (unknown) — No reviewed evidence is recorded for this dimension.
- **Real-world adoption** (verified) — CodeRabbit checks Java sources with the configured XML ruleset or a review-profile default when none is found. Reviewed 2026-11-28. [Source](https://docs.coderabbit.ai/tools/pmd)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

Use PMD in this repository to meet this standard: Identify risky Java source patterns. Choose a ruleset for unused code, error-prone patterns and design limits. Review violations at the source level and test custom rules against minimal fixtures. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://pmd.github.io/)
- [Agent skill](/skills/pmd/SKILL.md)
