Skip to content

maxwellhertz/pmd-java-analysis-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A pre-commit hook to analyze Java files by PMD.

Requirements

Usage

.pre-commit-hooks.yaml:

repos:
  - repo: https://github.com/maxwellhertz/pmd-java-analysis-hook
    rev: v0.1.1
    hooks:
      - id: pmd-java-analysis
        args:
          # (Optional) The path to a ruleset xml file. The default one is rulesets/java/quickstart.xml
          - "rulesets/java/quickstart.xml"
          # (Optional) Whether to exit with status 0 even if there are violations found. The default value is false.
          - "false"

About

This pre-commit hook analyze Java files using PMD.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages