Skip to content

Commit 84bf59b

Browse files
committed
✨ linter fixes
1 parent b49ce11 commit 84bf59b

6 files changed

Lines changed: 40 additions & 248 deletions

File tree

.golangci.yml

Lines changed: 7 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -18,84 +18,13 @@ linters-settings:
1818
extra-rules: true
1919

2020
linters:
21-
disable-all: true
22-
enable:
23-
- bodyclose
24-
- deadcode
25-
- depguard
26-
- dogsled
27-
- dupl
28-
- errcheck
29-
- funlen
30-
- gochecknoglobals
31-
- gochecknoinits
32-
- gocognit
33-
- goconst
34-
- gocritic
35-
- gocyclo
36-
- godot
37-
- gofmt
38-
- goimports
39-
- gomnd
40-
- gomodguard
41-
- goprintffuncname
42-
- gosec
43-
- gosimple
44-
- govet
45-
- ineffassign
46-
- lll
47-
- misspell
48-
- nakedret
49-
- nestif
50-
- prealloc
51-
- rowserrcheck
52-
- staticcheck
53-
- structcheck
54-
- stylecheck
55-
- typecheck
56-
- unconvert
57-
- unparam
58-
- unused
59-
- varcheck
60-
- whitespace
61-
- wsl
62-
- asciicheck
63-
- godox
64-
- nolintlint
65-
- goerr113
66-
- exhaustive
67-
- exportloopref
68-
- gofumpt
69-
- goheader
70-
- noctx
71-
- sqlclosecheck
72-
- nlreturn
73-
- errorlint
74-
- exhaustivestruct
75-
- paralleltest
76-
- tparallel
77-
- wrapcheck
78-
- forbidigo
79-
- makezero
80-
- predeclared
81-
- thelper
82-
- cyclop
83-
- durationcheck
84-
- forcetypeassert
85-
- gci
86-
- gomoddirectives
87-
- importas
88-
- nilerr
89-
- promlinter
90-
- revive
91-
- tagliatelle
92-
- testpackage
93-
- wastedassign
94-
- ifshort
95-
# - interfacer # Deprecated
96-
# - golint # Deprecated
97-
# - maligned # Deprecated
98-
# - scopelint # Deprecated
21+
enable-all: true
22+
disable:
23+
- gci # Conflicts with gofumpt
24+
- interfacer # Deprecated
25+
- golint # Deprecated
26+
- maligned # Deprecated
27+
- scopelint # Deprecated
9928

10029
issues:
10130
exclude-rules:

go.mod

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.17
55
require (
66
github.com/fergusstrange/embedded-postgres v1.2.0
77
github.com/frankban/quicktest v1.11.3 // indirect
8-
github.com/go-pg/pg/v10 v10.10.6
98
github.com/golang/snappy v0.0.2 // indirect
109
github.com/google/go-cmp v0.5.6 // indirect
1110
github.com/lib/pq v1.10.4
@@ -14,24 +13,16 @@ require (
1413
github.com/rs/zerolog v1.26.0
1514
github.com/stretchr/testify v1.7.0
1615
github.com/ulikunitz/xz v0.5.9 // indirect
17-
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
18-
golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
19-
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881 // indirect
2016
)
2117

2218
require (
2319
github.com/davecgh/go-spew v1.1.1 // indirect
2420
github.com/dsnet/compress v0.0.1 // indirect
25-
github.com/go-pg/zerochecker v0.2.0 // indirect
26-
github.com/jinzhu/inflection v1.0.0 // indirect
2721
github.com/mholt/archiver v3.1.1+incompatible // indirect
22+
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
2823
github.com/pmezard/go-difflib v1.0.0 // indirect
2924
github.com/stretchr/objx v0.1.0 // indirect
30-
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc // indirect
31-
github.com/vmihailenco/bufpool v0.1.11 // indirect
32-
github.com/vmihailenco/tagparser v0.1.2 // indirect
33-
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
3425
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
26+
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
3527
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
36-
mellium.im/sasl v0.2.1 // indirect
3728
)

0 commit comments

Comments
 (0)