Skip to content

Commit

Permalink
Update golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wmnsk committed Apr 4, 2024
1 parent 9a88ae4 commit 6ba86c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v4
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: "latest"
# Optional: golangci-lint command line arguments.
args: --issues-exit-code=1 --timeout=3m0s --tests=false --no-config --max-issues-per-linter=4095 --max-same-issues=1023 --disable-all --enable=deadcode --enable=errcheck --enable=gosimple --enable=govet --enable=ineffassign --enable=staticcheck --enable=structcheck --enable=typecheck --enable=unused --enable=varcheck --enable=bodyclose --enable=dogsled --enable=goconst --enable=gocritic --enable=gofmt --enable=goimports --enable=golint --enable=goprintffuncname --enable=gosec --enable=interfacer --enable=misspell --enable=nakedret --enable=prealloc --enable=rowserrcheck --enable=scopelint --enable=stylecheck --enable=unconvert --enable=unparam --enable=exportloopref --enable=gomodguard --enable=asciicheck --enable=errorlint
args: --issues-exit-code=1 --timeout=3m0s --tests=false --no-config --max-issues-per-linter=4095 --max-same-issues=1023 --disable-all -E=errcheck -E=gosimple -E=govet -E=ineffassign -E=staticcheck -E=typecheck -E=unused -E=bodyclose -E=dogsled -E=goconst -E=gocritic -E=gofmt -E=goimports -E=goprintffuncname -E=gosec -E=misspell -E=nakedret -E=prealloc -E=rowserrcheck -E=stylecheck -E=unconvert -E=unparam -E=exportloopref -E=gomodguard -E=asciicheck -E=errorlint
# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Simple TCAP implementation in the Go Programming Language.

![CI status](https://github.com/wmnsk/go-tcap/actions/workflows/go.yml/badge.svg)
[![golangci-lint](https://github.com/wmnsk/go-tcap/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/wmnsk/go-tcap/actions/workflows/golangci-lint.yml)
[![Go Reference](https://pkg.go.dev/badge/github.com/wmnsk/go-tcap.svg)](https://pkg.go.dev/github.com/wmnsk/go-tcap)
[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/wmnsk/go-tcap/blob/master/LICENSE)

Expand Down

0 comments on commit 6ba86c8

Please sign in to comment.