Git Product home page Git Product logo

action-checkstyle's Introduction

Checkstyle for Java GitHub Action

Test reviewdog depup release GitHub release (latest SemVer) action-bumpr supported

This is a GitHub action to run Checkstyle check on your Java code and report status via reviewdog on pull request.

Input parameters

  • checkstyle_config

    Checkstyle configuration specifies which ruleset to apply during the scan.
    There are two built-in configurations:

    It is also possible to supply your custom Checkstyle configuration file located in the same directory.

    Default: google_checks.xml

  • checkstyle_version

    Checkstyle version to be used during analysis.
    For a list of available version numbers go to Checkstyle release page.

    Default: 8.41

  • workdir

    Working directory relative to the root directory.

    Default: .

  • level

    Report level for reviewdog.

    Values: [info, warning, error]

    You can control GitHub status check result with this feature.

    Level GitHub Status
    info neutral
    warning neutral
    error failure

    Default: info

  • reporter

    Reporter of reviewdog command.
    See more in reviewdog documentation: https://github.com/reviewdog/reviewdog#reporters

    Values: [github-pr-check, github-check, github-pr-review]

    Default: github-pr-check

  • filter_mode

    Filtering mode for the reviewdog command.
    See more in reviewdog documentation: https://github.com/reviewdog/reviewdog#filter-mode

    Values: [added, diff_context, file, nofilter]

    Default: added

  • fail_on_error

    Exit code for reviewdog when errors are found.

    Values: [true, false]

    Default: false

  • reviewdog_flags

    Additional reviewdog flags.

    Default: ``

Usage

name: reviewdog
on: [pull_request]
jobs:
  checkstyle:
    name: runner / checkstyle
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: dbelyaev/action-checkstyle@master
        with:
          github_token: ${{ secrets.github_token }}
          reporter: github-pr-review
          level: warning

action-checkstyle's People

Contributors

dbelyaev avatar github-actions[bot] avatar immorpheus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.