Skip to content

Commit 42cab9c

Browse files
committed
chore: Upgrade Go and Hermit packages
1 parent 03cb98a commit 42cab9c

13 files changed

Lines changed: 263 additions & 246 deletions

File tree

.golangci.yml

Lines changed: 101 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,116 @@
1+
version: "2"
12
run:
23
tests: true
3-
skip-dirs:
4-
- _examples
5-
64
output:
7-
print-issued-lines: false
8-
5+
show-stats: false
6+
formats:
7+
text:
8+
print-issued-lines: false
9+
colors: true
910
linters:
10-
enable-all: true
11+
default: all
1112
disable:
12-
- maligned
13-
- megacheck
14-
- lll
15-
- gocyclo
16-
- dupl
17-
- gochecknoglobals
13+
- cyclop
14+
- depguard
15+
- dupword
16+
- err113
17+
- errname
18+
- errorlint
19+
- exhaustruct
20+
- forbidigo
21+
- forcetypeassert
1822
- funlen
19-
- godox
20-
- wsl
21-
- goimports
22-
- gomnd
23+
- gochecknoglobals
2324
- gocognit
24-
- goerr113
25-
- nolintlint
26-
- testpackage
25+
- gocritic
26+
- gocyclo
2727
- godot
28+
- godox
29+
- gomoddirectives
30+
- ireturn
31+
- lll
32+
- maintidx
33+
- mnd
34+
- nakedret
2835
- nestif
29-
- paralleltest
36+
- nilnil
3037
- nlreturn
31-
- cyclop
32-
- exhaustivestruct
33-
- gci
34-
- gofumpt
35-
- errorlint
36-
- exhaustive
37-
- ifshort
38-
- wrapcheck
39-
- stylecheck
38+
- nolintlint
4039
- nonamedreturns
40+
- paralleltest
41+
- perfsprint
42+
- predeclared
43+
- recvcheck
4144
- revive
42-
- dupword
43-
- exhaustruct
45+
- testpackage
4446
- varnamelen
45-
- forcetypeassert
46-
- ireturn
47-
- maintidx
48-
- govet
49-
- nosnakecase
50-
- testableexamples
51-
- gochecknoinits
52-
- prealloc
53-
- forbidigo
54-
- goprintffuncname
55-
- depguard
56-
- intrange
57-
- mnd
47+
- wastedassign
48+
- whitespace
49+
- wsl
50+
- wsl_v5
51+
- funcorder
52+
- noinlineerr
5853
- tagalign
59-
60-
linters-settings:
61-
govet:
62-
check-shadowing: true
63-
gocyclo:
64-
min-complexity: 10
65-
dupl:
66-
threshold: 100
67-
goconst:
68-
min-len: 8
69-
min-occurrences: 3
70-
forbidigo:
71-
#forbid:
72-
# - (Must)?NewLexer$
73-
exclude_godoc_examples: false
74-
54+
- goconst
55+
- gochecknoinits
56+
- durationcheck
57+
- embeddedstructfieldcheck
58+
settings:
59+
dupl:
60+
threshold: 100
61+
exhaustive:
62+
default-signifies-exhaustive: true
63+
goconst:
64+
min-len: 8
65+
min-occurrences: 3
66+
gocyclo:
67+
min-complexity: 10
68+
wrapcheck:
69+
report-internal-errors: false
70+
ignore-package-globs:
71+
- github.com/alecthomas/errors
72+
exclusions:
73+
generated: lax
74+
rules:
75+
- path: (.+)\.go$
76+
text: "^(G104|G204|G307|G304):"
77+
- path: (.+)\.go$
78+
text: Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
79+
- path: (.+)\.go$
80+
text: exported method `(.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos)` should have comment or be unexported
81+
- path: (.+)\.go$
82+
text: uses unkeyed fields
83+
- path: (.+)\.go$
84+
text: declaration of "err" shadows declaration
85+
- path: (.+)\.go$
86+
text: bad syntax for struct tag key
87+
- path: (.+)\.go$
88+
text: bad syntax for struct tag pair
89+
- path: (.+)\.go$
90+
text: ^ST1012
91+
- path: (.+)\.go$
92+
text: log/slog.Logger.*must not be called
93+
- path: (.+)_test\.go$
94+
text: error returned from external package is unwrapped
95+
- linters: [staticcheck]
96+
text: QF1008
97+
- text: "Error return value of `.*.Write` is not checked"
98+
linters: [errcheck]
99+
path: (.+)_test\.go$
100+
paths:
101+
- third_party$
102+
- builtin$
103+
- examples$
75104
issues:
76-
max-per-linter: 0
77-
max-same: 0
78-
exclude-use-default: false
79-
exclude:
80-
# Captured by errcheck.
81-
- "^(G104|G204):"
82-
# Very commonly not checked.
83-
- 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
84-
- 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
85-
- "comment on exported method"
86-
- "composite literal uses unkeyed fields"
87-
- 'declaration of "err" shadows declaration'
88-
- "should not use dot imports"
89-
- "Potential file inclusion via variable"
90-
- "should have comment or be unexported"
91-
- "comment on exported var .* should be of the form"
92-
- "at least one file in a package should have a package comment"
93-
- "string literal contains the Unicode"
94-
- "methods on the same type should have the same receiver name"
95-
- "_TokenType_name should be _TokenTypeName"
96-
- "`_TokenType_map` should be `_TokenTypeMap`"
97-
- "rewrite if-else to switch statement"
98-
- "comment.*should be of the form"
99-
- "should have comment"
105+
max-issues-per-linter: 0
106+
max-same-issues: 0
107+
formatters:
108+
enable:
109+
- gofmt
110+
- goimports
111+
exclusions:
112+
generated: lax
113+
paths:
114+
- third_party$
115+
- builtin$
116+
- examples$
File renamed without changes.

bin/go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.go-1.24.5.pkg
1+
.go-1.25.6.pkg

bin/gofmt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.go-1.24.5.pkg
1+
.go-1.25.6.pkg

bin/golangci-lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.golangci-lint-1.64.8.pkg
1+
.golangci-lint-2.8.0.pkg

bin/shellcheck

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.shellcheck-0.10.0.pkg
1+
.shellcheck-0.11.0.pkg

0 commit comments

Comments
 (0)