LoginSignup
0
0

More than 3 years have passed since last update.

【Go言語 GitHubActions】linterで特定のファイルを無視する方法

Posted at

調べてもあまりでてこなかったのでメモ用に残す


on:
  pull_request:
    paths:
      - '**.go'

jobs:
  lint:
    name: runner / lint
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: reviewdog/action-golangci-lint@v1
      with:
        github_token: ${{ secrets.github_token }}
        tool_name: golint
# ここに--skipをつけて指定する
        golangci_lint_flags: "--disable-all -E golint --skip pkg/"
        level: warning
        filter_mode: nofilter
        fail_on_error: true
        reporter: github-pr-review


0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0