Skip to content

Commit

Permalink
ci: refine Go project linting configuration
Browse files Browse the repository at this point in the history
- Add a new `.golangci.yml` configuration file with specific linters enabled and a 3-minute timeout for runs.

Signed-off-by: appleboy <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed May 12, 2024
1 parent 5867671 commit 0224ebf
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
linters:
enable-all: false
disable-all: true
fast: false
enable:
- bodyclose
- dogsled
- dupl
- errcheck
- exportloopref
- exhaustive
- gochecknoinits
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- noctx
- nolintlint
- rowserrcheck
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- whitespace
- gofumpt

run:
timeout: 3m

0 comments on commit 0224ebf

Please sign in to comment.