Skip to content

Commit 88bcee9

Browse files
authored
Merge pull request #6 from bengarrett/dev
Dev
2 parents 90e0c86 + c647591 commit 88bcee9

9 files changed

+722
-633
lines changed

.golangci.yml

+141-141
Original file line numberDiff line numberDiff line change
@@ -1,142 +1,142 @@
1-
linters-settings:
2-
depguard:
3-
list-type: blacklist
4-
packages:
5-
# logging is allowed only by logutils.Log, logrus
6-
# is allowed to use only in logutils package
7-
- github.com/sirupsen/logrus
8-
packages-with-error-message:
9-
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
10-
dupl:
11-
threshold: 100
12-
funlen:
13-
lines: 100
14-
statements: 50
15-
gci:
16-
local-prefixes: github.com/golangci/golangci-lint
17-
goconst:
18-
min-len: 2
19-
min-occurrences: 2
20-
gocritic:
21-
enabled-tags:
22-
- diagnostic
23-
- experimental
24-
- opinionated
25-
- performance
26-
- style
27-
disabled-checks:
28-
- dupImport # https://github.com/go-critic/go-critic/issues/845
29-
- ifElseChain
30-
- octalLiteral
31-
- whyNoLint
32-
- wrapperFunc
33-
gocyclo:
34-
min-complexity: 15
35-
goimports:
36-
local-prefixes: github.com/golangci/golangci-lint
37-
golint:
38-
min-confidence: 0
39-
gomnd:
40-
settings:
41-
mnd:
42-
# don't include the "operation" and "assign"
43-
checks: argument,case,condition,return
44-
govet:
45-
check-shadowing: true
46-
settings:
47-
printf:
48-
funcs:
49-
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
50-
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
51-
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
52-
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
53-
lll:
54-
line-length: 140
55-
maligned:
56-
suggest-new: true
57-
misspell:
58-
locale: US
59-
nolintlint:
60-
allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
61-
allow-unused: false # report any unused nolint directives
62-
require-explanation: false # don't require an explanation for nolint directives
63-
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
64-
65-
linters:
66-
# please, do not use `enable-all`: it's deprecated and will be removed soon.
67-
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
68-
disable-all: true
69-
enable:
70-
- bodyclose
71-
- deadcode
72-
- depguard
73-
- dogsled
74-
- dupl
75-
- errcheck
76-
- exportloopref
77-
- exhaustive
78-
- funlen
79-
- gochecknoglobals
80-
- gochecknoinits
81-
- goconst
82-
- gocritic
83-
- gocyclo
84-
- godot
85-
- goerr113
86-
- gofmt
87-
- goimports
88-
- golint
89-
- gomnd
90-
- goprintffuncname
91-
- gosec
92-
- gosimple
93-
- govet
94-
- ineffassign
95-
- lll
96-
- misspell
97-
- nakedret
98-
- noctx
99-
- nolintlint
100-
- rowserrcheck
101-
- staticcheck
102-
- structcheck
103-
- stylecheck
104-
- typecheck
105-
- unconvert
106-
- unparam
107-
- unused
108-
- varcheck
109-
- whitespace
110-
111-
# don't enable:
112-
# - asciicheck
113-
# - scopelint
114-
# - gocognit
115-
# - godot
116-
# - godox
117-
# - interfacer
118-
# - maligned
119-
# - nestif
120-
# - prealloc
121-
# - testpackage
122-
# - revive
123-
# - wsl
124-
125-
issues:
126-
# Excluding configuration per-path, per-linter, per-text and per-source
127-
exclude-rules:
128-
- path: _test\.go
129-
linters:
130-
- gomnd
131-
132-
# https://github.com/go-critic/go-critic/issues/926
133-
- linters:
134-
- gocritic
135-
text: "unnecessaryDefer:"
136-
137-
run:
138-
skip-dirs:
139-
- test/testdata_etc
140-
- internal/cache
141-
- internal/renameio
1+
linters-settings:
2+
depguard:
3+
list-type: blacklist
4+
packages:
5+
# logging is allowed only by logutils.Log, logrus
6+
# is allowed to use only in logutils package
7+
- github.com/sirupsen/logrus
8+
packages-with-error-message:
9+
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
10+
dupl:
11+
threshold: 100
12+
funlen:
13+
lines: 100
14+
statements: 50
15+
gci:
16+
local-prefixes: github.com/golangci/golangci-lint
17+
goconst:
18+
min-len: 2
19+
min-occurrences: 2
20+
gocritic:
21+
enabled-tags:
22+
- diagnostic
23+
- experimental
24+
- opinionated
25+
- performance
26+
- style
27+
disabled-checks:
28+
- dupImport # https://github.com/go-critic/go-critic/issues/845
29+
- ifElseChain
30+
- octalLiteral
31+
- whyNoLint
32+
- wrapperFunc
33+
gocyclo:
34+
min-complexity: 15
35+
goimports:
36+
local-prefixes: github.com/golangci/golangci-lint
37+
golint:
38+
min-confidence: 0
39+
gomnd:
40+
settings:
41+
mnd:
42+
# don't include the "operation" and "assign"
43+
checks: argument,case,condition,return
44+
govet:
45+
check-shadowing: true
46+
settings:
47+
printf:
48+
funcs:
49+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
50+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
51+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
52+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
53+
lll:
54+
line-length: 140
55+
maligned:
56+
suggest-new: true
57+
misspell:
58+
locale: US
59+
nolintlint:
60+
allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
61+
allow-unused: false # report any unused nolint directives
62+
require-explanation: false # don't require an explanation for nolint directives
63+
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
64+
65+
linters:
66+
# please, do not use `enable-all`: it's deprecated and will be removed soon.
67+
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
68+
disable-all: true
69+
enable:
70+
- bodyclose
71+
- deadcode
72+
- depguard
73+
- dogsled
74+
- dupl
75+
- errcheck
76+
- exportloopref
77+
- exhaustive
78+
- funlen
79+
- gochecknoglobals
80+
- gochecknoinits
81+
- goconst
82+
- gocritic
83+
- gocyclo
84+
- godot
85+
- goerr113
86+
- gofmt
87+
- goimports
88+
- gomnd
89+
- goprintffuncname
90+
- gosec
91+
- gosimple
92+
- govet
93+
- ineffassign
94+
- lll
95+
- misspell
96+
- nakedret
97+
- noctx
98+
- nolintlint
99+
- revive
100+
- rowserrcheck
101+
- staticcheck
102+
- structcheck
103+
- stylecheck
104+
- typecheck
105+
- unconvert
106+
- unparam
107+
- unused
108+
- varcheck
109+
- whitespace
110+
111+
# don't enable:
112+
# - asciicheck
113+
# - scopelint
114+
# - gocognit
115+
# - godot
116+
# - godox
117+
# - interfacer
118+
# - maligned
119+
# - nestif
120+
# - prealloc
121+
# - testpackage
122+
# - revive
123+
# - wsl
124+
125+
issues:
126+
# Excluding configuration per-path, per-linter, per-text and per-source
127+
exclude-rules:
128+
- path: _test\.go
129+
linters:
130+
- gomnd
131+
132+
# https://github.com/go-critic/go-critic/issues/926
133+
- linters:
134+
- gocritic
135+
text: "unnecessaryDefer:"
136+
137+
run:
138+
skip-dirs:
139+
- test/testdata_etc
140+
- internal/cache
141+
- internal/renameio
142142
- internal/robustio

go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ go 1.16
44

55
require (
66
github.com/bengarrett/retrotxtgo v0.0.31
7+
github.com/dustin/go-humanize v1.0.0
78
github.com/gookit/color v1.4.2
9+
github.com/muesli/go-app-paths v0.2.1
810
)

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZm
5252
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
5353
github.com/dlclark/regexp2 v1.4.0 h1:F1rxgk7p4uKjwIQxBs9oAXe5CqrXlCduYEJvrF4u93E=
5454
github.com/dlclark/regexp2 v1.4.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc=
55+
github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo=
56+
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
5557
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
5658
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
5759
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=

0 commit comments

Comments
 (0)