Skip to content

Commit e145060

Browse files
committed
review
1 parent a155396 commit e145060

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

jsonschema/golangci.next.jsonschema.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@
368368
"gocyclo",
369369
"godot",
370370
"godox",
371+
"golines",
371372
"err113",
372373
"gofmt",
373374
"gofumpt",
@@ -1592,6 +1593,32 @@
15921593
}
15931594
}
15941595
},
1596+
"golines": {
1597+
"type": "object",
1598+
"additionalProperties": false,
1599+
"properties": {
1600+
"max-len": {
1601+
"type": "integer",
1602+
"default": 100
1603+
},
1604+
"tab-len": {
1605+
"type": "integer",
1606+
"default": 4
1607+
},
1608+
"shorten-comments": {
1609+
"type": "boolean",
1610+
"default": false
1611+
},
1612+
"reformat-tags": {
1613+
"type": "boolean",
1614+
"default": true
1615+
},
1616+
"chain-split-dots": {
1617+
"type": "boolean",
1618+
"default": true
1619+
}
1620+
}
1621+
},
15951622
"interfacebloat": {
15961623
"type": "object",
15971624
"additionalProperties": false,

pkg/goformatters/golines/golines.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ func New(settings *config.GoLinesSettings) *Formatter {
1919
options = golines.ShortenerConfig{
2020
MaxLen: settings.MaxLen,
2121
TabLen: settings.TabLen,
22-
KeepAnnotations: false, // debug
22+
KeepAnnotations: false, // golines debug (not usable inside golangci-lint)
2323
ShortenComments: settings.ShortenComments,
2424
ReformatTags: settings.ReformatTags,
2525
IgnoreGenerated: false, // handle globally
26-
DotFile: "", // debug
26+
DotFile: "", // golines debug (not usable inside golangci-lint)
2727
ChainSplitDots: settings.ChainSplitDots,
2828
BaseFormatterCmd: "fmt", // fake cmd
2929
}

0 commit comments

Comments
 (0)