refactor(scan.go): array index is out of bounds exits the for loop #1307
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: reviewdog | |
on: [pull_request] | |
jobs: | |
golangci-lint: | |
name: runner / golangci-lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: golangci-lint | |
uses: reviewdog/action-golangci-lint@v2 | |
- name: Setup reviewdog | |
uses: reviewdog/action-setup@v1 | |
- name: gofumpt -s with reviewdog | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
go install mvdan.cc/[email protected] | |
gofumpt -e -d . | \ | |
reviewdog -name="gofumpt" -f=diff -f.diff.strip=0 -reporter=github-pr-review |