Skip to content

Commit

Permalink
Upgrade go+golangci-lint and fix lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Feb 28, 2023
1 parent 73f08be commit e44e4b9
Show file tree
Hide file tree
Showing 13 changed files with 367 additions and 265 deletions.
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ linters:
- nilnil
- maintidx
- unused # Does not work with type parameters
- dupword

linters-settings:
govet:
Expand All @@ -75,7 +76,7 @@ issues:
# Very commonly not checked.
- 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
- 'exported method `(.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos)` should have comment or be unexported'
- 'composite literal uses unkeyed fields'
- 'uses unkeyed fields'
- 'declaration of "err" shadows declaration'
- 'bad syntax for struct tag key'
- 'bad syntax for struct tag pair'
Expand Down
Loading

0 comments on commit e44e4b9

Please sign in to comment.