pmd-annotations-github-action

command module
v0.0.0-...-a6ec168 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 8 Imported by: 0

README

About

Github Action to create annotations from a PMD report.


Usage

name: Analyse Source Code with PMD
on: [push]

jobs:
  analysis:
    name: Analysis
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      # Generate the PMD Report
      #
      # You can use any action or build step
      # which can generate a PMD report in JSON
      # format (i.e. Maven, Gradle, ....)
      - name: PMD
        uses: rody/pmd-github-action@main
        with:
          rulesets: 'rulesets/apex/quickstart.xml'
          reportfile: 'pmd-report.json'
          format: 'json'
          failOnViolation: 'false'
          
      # Create annotations from PMD report
      - name: Create PMD annotations
        uses: rody/pmd-annotations-github-action@main
        with:
          reportfile: 'pmd-report.json'
          # Treat all rules with priority 1-4 as errors
          min-error-priority: 4
          # If any violations is an error, mark the step as failed
          fail-on-error: true

Input

See action.yml

License

The scripts and documentation in this project are released under the MIT License

Contributions

Contributions are welcome!

Code of Conduct

👋 Be nice and respectful.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL