Skip to content

Commit 0fbb63f

Browse files
committed
1 parent 836eff4 commit 0fbb63f

File tree

3 files changed

+3
-37
lines changed

3 files changed

+3
-37
lines changed

.golangci.yml

+1-33
Original file line numberDiff line numberDiff line change
@@ -20,39 +20,7 @@ linters-settings:
2020
2121
linters:
2222
disable-all: true
23-
enable:
24-
# Custom
25-
- noprint # Use forbidigo instead?
26-
- nodebug
27-
- rangevarref
28-
29-
# Standard
30-
- asasalint # Bugs (variadic functions taking any)
31-
- bidichk # Check for questionable Unicode
32-
- exportloopref # Smarter version of rangevarref?
33-
- goheader # Enforce the copyright header
34-
- misspell # Spelling
35-
- nakedret # Not really sure what this one does
36-
- unconvert # Lint (unnecessary conversions)
37-
38-
# TODO Enable at some point
39-
# - maintidx # Maintainability
40-
41-
# Gosec panics on some of the generic code
42-
# - gosec # Security
43-
# - nilerr # Bugs (error checking)
44-
45-
# Defaults
46-
- errcheck
47-
- gosimple
48-
- govet
49-
- ineffassign
50-
- staticcheck
51-
- typecheck
52-
- unused
53-
54-
# - nestif # I'd like to enable this but I don't want to deal with the issues yet
55-
# - godox # Enable to find TODO/BUG/FIXME
23+
enable: [govet]
5624

5725
issues:
5826
max-same-issues: 0

go.mod

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ go 1.21
99

1010
replace github.com/julienschmidt/httprouter v1.3.0 => github.com/firelizzard18/httprouter v0.0.0-20231019203155-74063b4f447c
1111

12-
replace golang.org/x/tools v0.19.0 => golang.org/x/tools v0.18.0
13-
1412
require (
1513
github.com/AccumulateNetwork/jsonrpc2/v15 v15.0.0-20220517212445-953ad957e040
1614
github.com/FactomProject/factom v0.4.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1549,8 +1549,8 @@ golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA=
15491549
golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k=
15501550
golang.org/x/tools v0.5.0/go.mod h1:N+Kgy78s5I24c24dU8OfWNEotWjutIs8SnJvn5IDq+k=
15511551
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
1552-
golang.org/x/tools v0.18.0 h1:k8NLag8AGHnn+PHbl7g43CtqZAwG60vZkLqgyZgIHgQ=
1553-
golang.org/x/tools v0.18.0/go.mod h1:GL7B4CwcLLeo59yx/9UWWuNOW1n3VZ4f5axWfML7Lcg=
1552+
golang.org/x/tools v0.19.0 h1:tfGCXNR1OsFG+sVdLAitlpjAvD/I6dHDKnYrpEZUHkw=
1553+
golang.org/x/tools v0.19.0/go.mod h1:qoJWxmGSIBmAeriMx19ogtrEPrGtDbPK634QFIcLAhc=
15541554
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
15551555
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
15561556
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

0 commit comments

Comments
 (0)