Skip to content

Commit

Permalink
chore: enable more linters
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Dec 3, 2022
1 parent 9e363ca commit c704666
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 21 deletions.
49 changes: 28 additions & 21 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ linters:
- bodyclose
- containedctx
- contextcheck
- cyclop
- decorder
- depguard
- dogsled
- dupl
- dupword
- durationcheck
- errcheck
- errchkjson
Expand All @@ -20,13 +22,20 @@ linters:
- exportloopref
- forbidigo
- forcetypeassert
- gci
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- godox
- goerr113
- gofmt
- gofumpt
- goheader
- goimports
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
Expand All @@ -37,61 +46,59 @@ linters:
- ineffassign
- interfacebloat
- ireturn
- loggercheck
- maintidx
- makezero
- misspell
- nakedret
- nestif
- nilerr
- nilnil
- noctx
- nolintlint
- nonamedreturns
- nosprintfhostport
- prealloc
- predeclared
- promlinter
- reassign
- revive
- staticcheck
- stylecheck
- tagliatelle
- tenv
- testableexamples
- testpackage
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
- whitespace
- wrapcheck
disable:
- cyclop
- exhaustivestruct
- exhaustruct
- funlen
- gci
- gochecknoglobals
- gochecknoinits
- gocognit
- gocyclo
- godox
- goheader
- gomnd
- gomoddirectives
- ifshort
- lll
- maintidx
- makezero
- nestif
- nlreturn
- nlreturn
- nolintlint
- paralleltest
- promlinter
- revive
- rowserrcheck # https://github.com/golangci/golangci-lint/issues/2649
- scopelint
- sqlclosecheck # https://github.com/golangci/golangci-lint/issues/2649
- structcheck # https://github.com/golangci/golangci-lint/issues/2649
- testpackage
- tparallel
- varnamelen
- wastedassign # https://github.com/golangci/golangci-lint/issues/2649
- wrapcheck
- wsl

linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/twpayne/go-proj)
goimports:
local-prefixes: github.com/twpayne/go-proj

Expand Down
2 changes: 2 additions & 0 deletions transformation.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type Transformation struct {
}

// A ProjInfo contains information about a Proj.
//
//nolint:revive
type ProjInfo struct {
ID string
Description string
Expand Down

0 comments on commit c704666

Please sign in to comment.