Skip to content

Commit

Permalink
✨ linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lawzava committed Nov 30, 2021
1 parent b49ce11 commit 84bf59b
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 248 deletions.
85 changes: 7 additions & 78 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,84 +18,13 @@ linters-settings:
extra-rules: true

linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- funlen
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- gofmt
- goimports
- gomnd
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- nestif
- prealloc
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
- wsl
- asciicheck
- godox
- nolintlint
- goerr113
- exhaustive
- exportloopref
- gofumpt
- goheader
- noctx
- sqlclosecheck
- nlreturn
- errorlint
- exhaustivestruct
- paralleltest
- tparallel
- wrapcheck
- forbidigo
- makezero
- predeclared
- thelper
- cyclop
- durationcheck
- forcetypeassert
- gci
- gomoddirectives
- importas
- nilerr
- promlinter
- revive
- tagliatelle
- testpackage
- wastedassign
- ifshort
# - interfacer # Deprecated
# - golint # Deprecated
# - maligned # Deprecated
# - scopelint # Deprecated
enable-all: true
disable:
- gci # Conflicts with gofumpt
- interfacer # Deprecated
- golint # Deprecated
- maligned # Deprecated
- scopelint # Deprecated

issues:
exclude-rules:
Expand Down
13 changes: 2 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ go 1.17
require (
github.com/fergusstrange/embedded-postgres v1.2.0
github.com/frankban/quicktest v1.11.3 // indirect
github.com/go-pg/pg/v10 v10.10.6
github.com/golang/snappy v0.0.2 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/lib/pq v1.10.4
Expand All @@ -14,24 +13,16 @@ require (
github.com/rs/zerolog v1.26.0
github.com/stretchr/testify v1.7.0
github.com/ulikunitz/xz v0.5.9 // indirect
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881 // indirect
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dsnet/compress v0.0.1 // indirect
github.com/go-pg/zerochecker v0.2.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/mholt/archiver v3.1.1+incompatible // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/objx v0.1.0 // indirect
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc // indirect
github.com/vmihailenco/bufpool v0.1.11 // indirect
github.com/vmihailenco/tagparser v0.1.2 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
mellium.im/sasl v0.2.1 // indirect
)
Loading

0 comments on commit 84bf59b

Please sign in to comment.