Skip to content

Commit

Permalink
build: Add extra linters.
Browse files Browse the repository at this point in the history
Some of these cover points which have recently been highlighted in
reviews, such as contexts contained in structs, slices initialized with
zero length, and periods missing from the end of comments.
  • Loading branch information
jholdstock committed Aug 23, 2023
1 parent 4622f04 commit decb511
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,33 @@ linters:
enable:
- asciicheck
- bidichk
- containedctx
- durationcheck
- errcheck
- errchkjson
- errorlint
- exhaustive
- exportloopref
- goconst
- godot
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- makezero
- misspell
- nilerr
- nosprintfhostport
- prealloc
- predeclared
- reassign
- revive
- staticcheck
- tparallel
- typecheck
- unconvert
- unparam
- unused
- vetshadow
# - wsl
# - whitespace
# - nlreturn

0 comments on commit decb511

Please sign in to comment.