Skip to content

Commit

Permalink
add staticcheck to golangci
Browse files Browse the repository at this point in the history
  • Loading branch information
egonelbre committed Jul 15, 2024
1 parent b3d1b26 commit 638b5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ linters:
- tenv # ensure we use t.SetEnv instead of os.SetEnv
- unconvert # remove unnecessary conversions
- wastedassign
- staticcheck # a lot of useful checks
#TODO#- nilnil # needs fixes; checks that we don't return a nil and no-error
#TODO#- forcetypeassert # needs work to replace unchecked interface type assertion
#TODO#- gochecknoglobals # needs work to remove globals
Expand All @@ -40,7 +41,6 @@ linters:
#TODO#- whitespace # checks for leading/trailing newlines
disable:
- nolintlint # checks that nolint directives are correct
- staticcheck # we already use staticcheck separately
- asciicheck # non-ascii is allowed
- containedctx # gives false positives, however might be good to re-evaluate
- contextcheck # doesn't look like it's useful
Expand Down

0 comments on commit 638b5b0

Please sign in to comment.