Skip to content

Commit

Permalink
golangci-lint: add rules (#872)
Browse files Browse the repository at this point in the history
* golangci-lint: add rules

* bump golangci-lint

* Bump ci-lint-go action version to include only-new-issues config

---------

Co-authored-by: Alexandr Yepishev <[email protected]>
  • Loading branch information
jmank88 and chudilka1 authored Oct 22, 2024
1 parent b772997 commit 84d3ef9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/golangci_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:
actions: read
steps:
- name: golangci-lint
uses: smartcontractkit/.github/actions/ci-lint-go@5f5ebd52cb13f4b8530cd3005ec7ec3180840219 # v0.2.5
uses: smartcontractkit/.github/actions/ci-lint-go@2ac9d97a83a5edded09af7fcf4ea5bce7a4473a4 # v0.2.6
with:
golangci-lint-version: v1.60.1
go-version-file: go.mod
golangci-lint-version: v1.61.0

24 changes: 15 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,29 @@ run:
timeout: 15m0s
linters:
enable:
- containedctx
- depguard
- errname
- errorlint
- exhaustive
- exportloopref
- revive
- fatcontext
- ginkgolinter
- goimports
- gosec
- loggercheck
- mirror
- misspell
- noctx
- perfsprint
- prealloc
- revive
- rowserrcheck
- errorlint
- unconvert
- spancheck
- sqlclosecheck
- noctx
- testifylint
- unconvert
- whitespace
- depguard
- containedctx
- fatcontext
- mirror
- loggercheck
linters-settings:
exhaustive:
default-signifies-exhaustive: true
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
golang 1.22.7
protoc 25.1
protoc-gen-go-grpc 1.3.0
golangci-lint 1.55.2
golangci-lint 1.61.0
mockery 2.43.2

0 comments on commit 84d3ef9

Please sign in to comment.