GitHub - lookslikematrix/pre-commit-pmd · GitHub
Skip to content

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

pre-commit-pmd

This repository preserves the PMD integration from the discontinued xberg-io/pre-commit-hooks library. We use it because the alternative pre-commit-java requires Docker and we need to run PMD directly on the system.

Usage

Add this to .pre-commit-config.yaml:

repos:
  - repo: https://github.com/lookslikematrix/pre-commit-pmd
    rev: main
    hooks:
      - id: pmd

Configuration

- id: pmd
  args: ['-d', 'src', '-R', 'rulesets/java/quickstart.xml', '-minimumpriority', '3']

See PMD documentation for available options.

❤️ Contributing

Contributions welcome! Feel free to open issues or submit PRs.

License

MIT License - see LICENSE file for details

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages