Skip to content

Commit d026196

Browse files
committed
chore: golangci-lint updates
1 parent 18f076a commit d026196

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
go-version-file: go.mod
2626
- uses: golangci/golangci-lint-action@v9
2727
with:
28-
version: v2.1.6
28+
version: v2.7.2

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ linters:
33
default: fast
44
enable:
55
- staticcheck
6+
- wsl_v5
67
disable:
78
- depguard
89
- mnd
910
- prealloc
1011
- testpackage
12+
- wsl
1113
exclusions:
1214
warn-unused: true
1315
rules:

internal/docs/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func renderAll(root *cobra.Command) []byte {
4747

4848
func walk(c *cobra.Command, visit func(*cobra.Command, int)) {
4949
var rec func(*cobra.Command, int)
50+
5051
rec = func(cmd *cobra.Command, depth int) {
5152
if cmd.Hidden {
5253
return

pkg/cmd/generate/openapi/openapi.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ func getAPIOverviewData(
136136
doc *libopenapi.DocumentModel[v3.Document],
137137
opts *Options,
138138
) (OverviewData, error) {
139-
140139
result := OverviewData{
141140
OutputFilename: fmt.Sprintf("%s.mdx", opts.APIName),
142141
OutputPath: opts.OutputDirectory,

pkg/cmd/root/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ func NewRootCmd() *cobra.Command {
1616
"indent": func(n int, s string) string {
1717
pad := strings.Repeat(" ", n)
1818
s = strings.TrimSpace(s)
19+
1920
lines := strings.Split(s, "\n")
2021
for i, l := range lines {
2122
if strings.TrimSpace(l) != "" {

0 commit comments

Comments
 (0)