Skip to content

An action that displays Checkstyle errors as inline code annotations.

License

Notifications You must be signed in to change notification settings

Juuxel/publish-checkstyle-report

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Publish Checkstyle Report

Build status License Version

An action that displays Checkstyle errors as inline code annotations.

Example error screenshot

Usage

After the workflow step that runs Checkstyle and produces the report XML files, add this action:

- name: Publish Checkstyle report
  uses: Juuxel/publish-checkstyle-report@v1
  if: ${{ failure() || success() }}
  with:
    # required: The glob paths to report XML files as a multiline string
    # The format below works for the Gradle Checkstyle plugin with default configurations
    reports: |
      build/reports/checkstyle/*.xml

You can replace failure() || success() with just failure() if you only want the annotations to appear when the build has failed.

About

An action that displays Checkstyle errors as inline code annotations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published