Skip to content

Commit

Permalink
chore(.golangci.yml): update linters configuration to exclude G402 an…
Browse files Browse the repository at this point in the history
…d remove unused linters

The linters configuration in the .golangci.yml file has been updated to
exclude the G402 rule from the gosec linter. Additionally, the following
linters have been removed from the configuration as they are not being
used: lll, decorder, dupl, errname, gocognit, gomnd, gomoddirectives,
gomodguard, grouper, importas, maintidx, nestif, nilerr, nlreturn,
nolintlint, prealloc, predeclared, rowserrcheck, thelper, tparallel,
varnamelen, and wastedassign.
  • Loading branch information
cybersiddhu committed Nov 7, 2023
1 parent 2daa785 commit 93c10f9
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ run:
linters-settings:
funlen:
lines: 80
statements: 50
lll:
line-length: 130
revive:
rules:
- name: var-naming
arguments: [["ID"]]
gosec:
excludes:
- G404
- G402
wrapcheck:
ignoreSigs:
- .HandleMessagingError(
Expand All @@ -36,57 +34,31 @@ linters:
- bodyclose
- bidichk
- cyclop
- decorder
- depguard
- decorder
- dogsled
- dupl
# - dupl
- errcheck
- errname
- funlen
- gci
- gochecknoinits
- goconst
- gocritic
- gocyclo
- godot
- gofmt
- goimports
- gosec
- gosimple
- govet
- gocognit
- gomnd
- gomoddirectives
- gomodguard
- grouper
- ineffassign
- importas
- lll
- maintidx
- misspell
- nakedret
- nestif
- nilerr
- nlreturn
- nolintlint
- prealloc
# - paralleltest
- predeclared
- revive
- rowserrcheck
- staticcheck
- typecheck
- unconvert
- thelper
- tparallel
- unparam
- unused
- unconvert
- unparam
- varnamelen
- wastedassign
- whitespace
- wrapcheck

# don't enable:
# - godox
Expand Down

0 comments on commit 93c10f9

Please sign in to comment.