Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
glebnaz committed Nov 13, 2023
1 parent edd2ef7 commit 11b17d7
Showing 1 changed file with 10 additions and 30 deletions.
40 changes: 10 additions & 30 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,39 +29,19 @@ linters-settings:
goconst:
min-len: 2
min-occurrences: 2
lll:
# Max line length, lines longer will be reported.
# '\t' is counted as 1 character by default, and can be changed with the tab-width option.
# Default: 120.
line-length: 500
# Tab width in spaces.
# Default: 1
tab-width: 2
misspell:
locale: US

linters:
disable-all: true
enable:
- dupl
- misspell
- unused
- goimports
- goconst
- revive
- govet
- errcheck
- noctx
- nilerr
- paralleltest
- lll


issues:
exclude-use-default: false
exclude:
- G104
- (comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form)
- should have a package comment, unless it's in another file for this package
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv|.*Rollback). is not checked
- should check returned error before deferring
- declaration of "ok" shadows declaration
- deadcode
- structcheck
- varcheck
- ineffassign
- typecheck
- goconst
- gosec
- goimports
- exportloopref

0 comments on commit 11b17d7

Please sign in to comment.