Skip to content

Commit

Permalink
put all lint config to .golangci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinForReal committed Dec 15, 2023
1 parent 1054758 commit 1768591
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
args: -E=gofmt,unused,ineffassign,revive,misspell,exportloopref,asciicheck,bodyclose,depguard,dogsled,durationcheck,errname,forbidigo -D=staticcheck --timeout=30m0s
18 changes: 15 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
run:
deadline: 10m
deadline: 30m

linters:
disable:
- typecheck
- structcheck
- staticcheck
enable:
- golint

- gofmt
- unused
- ineffassign
- revive
- misspell
- exportloopref
- asciicheck
- bodyclose
- depguard
- dogsled
- durationcheck
- errname
- forbidigo
linters-settings:
depguard:
rules:
Expand Down

0 comments on commit 1768591

Please sign in to comment.