Skip to content

Commit

Permalink
Fix CI lint rules (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
liranbg authored Jan 27, 2023
1 parent daa6835 commit 535d50b
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
linters:
disable-all: true
enable:
- deadcode
- goconst
- gofmt
- revive
- gosimple
- ineffassign
- misspell
- staticcheck
- unconvert
- varcheck
- vet
- vetshadow
- errcheck
- govet
- structcheck
- typecheck
- gocritic

run:

# timeout for analysis
timeout: 5m

skip-dirs:
- hack

linters-settings:
revive:
rules:

# avoid errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) messages
- name: errorf
disabled: true

gocritic:
disabled-checks:
- commentFormatting # we dont want to enforce space before the comment text

issues:

# List of regexps of issue texts to exclude
exclude:
- "comment on"
- "error should be the last"

exclude-rules:

# list of excluded linters applied on test files
- path: _test\.go
linters:
- goconst

0 comments on commit 535d50b

Please sign in to comment.