File tree Expand file tree Collapse file tree 5 files changed +5
-2
lines changed
Expand file tree Collapse file tree 5 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ func renderAll(root *cobra.Command) []byte {
4747
4848func 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
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ) != "" {
You can’t perform that action at this time.
0 commit comments