Skip to content

Update all go

Update all go #359

Workflow file for this run

name: Linter
on:
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
check-links:
name: Markdown / Link
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
fetch-tags: true
- name: Run linkspector
uses: umbrelladocs/action-linkspector@fc382e19892aca958e189954912fe379a8df270c # v1.2.4
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
fail_on_error: true
golint:
name: Go
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
issues: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
fetch-tags: true
- name: Requirements
uses: reviewdog/action-golangci-lint@dd3fda91790ca90e75049e5c767509dc0ec7d99b # v2.7.0
with:
github_token: ${{ secrets.github_token }}
golangci_lint_flags: "--fix --timeout 2m0s --disable-all -E asciicheck,bidichk,bodyclose,canonicalheader,dogsled,exhaustive,gocheckcompilerdirectives,gofmt,durationcheck,errname,errorlint,fatcontext,goheader,inamedparam,interfacebloat,intrange,makezero,mirror,misspell,noctx,nonamedreturns,prealloc,predeclared,tenv,testifylint,unconvert,usestdlibvars,wastedassign"
reporter: github-pr-review
tool_name: Go Lint Issues
fail_on_error: true
cache: false
filter_mode: added
- name: Suggestions
uses: reviewdog/action-golangci-lint@dd3fda91790ca90e75049e5c767509dc0ec7d99b # v2.7.0
if: success() || failure()
with:
github_token: ${{ secrets.github_token }}
golangci_lint_flags: "--fix --timeout 2m0s -E dupl,gocritic,maintidx,mnd,perfsprint,revive,stylecheck"
reporter: github-pr-review
tool_name: Go Lint Suggestions
level: warning
fail_on_error: false
cache: false
filter_mode: file
- uses: reviewdog/action-suggester@db4abb16fbaabe386831e5addb7be1485d0d63d3 # v1.18.0
if: success() || failure()
with:
tool_name: Go Lint Issues
github_token: ${{ secrets.github_token }}