All Projects → reviewdog → action-shellcheck

reviewdog / action-shellcheck

Licence: MIT License
Run shellcheck with reviewdog

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to action-shellcheck

action-markdownlint
Run markdownlint with reviewdog
Stars: ✭ 11 (-82.81%)
Mutual labels:  reviewdog
action-languagetool
Run languagetool with reviewdog 🐶
Stars: ✭ 24 (-62.5%)
Mutual labels:  reviewdog
bashew
bash script micro-framework - from small stand-alone script to complex projects with CI/CD and testing
Stars: ✭ 139 (+117.19%)
Mutual labels:  shellcheck
dotfiles
My dotfiles
Stars: ✭ 22 (-65.62%)
Mutual labels:  shellcheck
action-brakeman
Run brakeman with reviewdog 🐶
Stars: ✭ 22 (-65.62%)
Mutual labels:  reviewdog
shellcheck-orb
An orb for ShellCheck, a static analysis tool for shell scripts (https://shellcheck.net) — check all scripts in your repository on every commit
Stars: ✭ 18 (-71.87%)
Mutual labels:  shellcheck
action-hadolint
Run hadolint with reviewdog 🐶
Stars: ✭ 38 (-40.62%)
Mutual labels:  reviewdog
mirror
A (Docker) application to mirror any website.
Stars: ✭ 13 (-79.69%)
Mutual labels:  shellcheck
action-dotenv-linter
GitHub Action to run dotenv-linter ⚡️
Stars: ✭ 14 (-78.12%)
Mutual labels:  reviewdog
action-rubocop
Run rubocop with reviewdog 🐶
Stars: ✭ 83 (+29.69%)
Mutual labels:  reviewdog
vim-shellcheck
Vim wrapper for ShellCheck, a static analysis tool for shell scripts.
Stars: ✭ 63 (-1.56%)
Mutual labels:  shellcheck
action-misspell
Run misspell with reviewdog
Stars: ✭ 67 (+4.69%)
Mutual labels:  reviewdog
action-eslint
Run eslint with reviewdog
Stars: ✭ 173 (+170.31%)
Mutual labels:  reviewdog
Hadolint
Dockerfile linter, validate inline bash, written in Haskell
Stars: ✭ 6,284 (+9718.75%)
Mutual labels:  shellcheck
action-ktlint
Run Ktlint with reviewdog
Stars: ✭ 41 (-35.94%)
Mutual labels:  reviewdog
action-textlint
Run textlint with reviewdog on pull requests to improve document writing experience.
Stars: ✭ 41 (-35.94%)
Mutual labels:  reviewdog
action-tfsec
Run tfsec with reviewdog on pull requests to enforce security best practices
Stars: ✭ 52 (-18.75%)
Mutual labels:  reviewdog
action-tflint
Run tflint with reviewdog on pull requests to enforce best practices
Stars: ✭ 65 (+1.56%)
Mutual labels:  reviewdog
alpine-shellcheck
Docker image for Alpine Linux with latest ShellCheck, a static analysis tool for shell scripts.
Stars: ✭ 12 (-81.25%)
Mutual labels:  shellcheck
shell-ci-build
A submodule to lint your shell projects with shellcheck in travis.ci builds
Stars: ✭ 39 (-39.06%)
Mutual labels:  shellcheck

GitHub Action: Run shellcheck with reviewdog

Docker Image CI depup release GitHub release (latest SemVer) action-bumpr supported

This action runs shellcheck with reviewdog on pull requests to improve code review experience.

github-pr-check sample github-pr-review sample

Inputs

github_token

Optional. ${{ github.token }} is used by default.

level

Optional. Report level for reviewdog [info,warning,error]. It's same as -level flag of reviewdog.

reporter

Reporter of reviewdog command [github-pr-check,github-pr-review,github-check]. Default is github-pr-check. github-pr-review can use Markdown and add a link to rule page in reviewdog reports.

filter_mode

Optional. Filtering mode for the reviewdog command [added,diff_context,file,nofilter]. Default is file.

fail_on_error

Optional. Exit code for reviewdog when errors are found [true,false] Default is false.

reviewdog_flags

Optional. Additional reviewdog flags

path

Optional. Base directory to run shellcheck. Same as [path] of find command. Default: .

Directories are separated by lines. e.g.:

path: |
  tools
  src

pattern

Optional. File patterns of target files. Same as -name [pattern] of find command. Default: *.sh

Patterns are separated by lines. e.g.:

pattern: |
  *.bash
  *.sh

exclude

Optional. Exclude patterns of target files. Same as -not -path [exclude] of find command. Default: */.git/*

Patterns are separated by lines. e.g.:

exclude: |
  */.git/*
  ./.cache/*

check_all_files_with_shebangs

Optional. Checks all files with shebangs in the repository even if they do not match pattern. Default is false.

shellcheck_flags

Optional. Flags of shellcheck command. Default: --external-sources

Example usage

.github/workflows/reviewdog.yml

name: reviewdog
on: [pull_request]
jobs:
  shellcheck:
    name: runner / shellcheck
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: shellcheck
        uses: reviewdog/action-shellcheck@v1
        with:
          github_token: ${{ secrets.github_token }}
          reporter: github-pr-review # Change reporter.
          path: "." # Optional.
          pattern: "*.sh" # Optional.
          exclude: "./.git/*" # Optional.
          check_all_files_with_shebangs: "false" # Optional.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].