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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址