File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 368
368
" gocyclo" ,
369
369
" godot" ,
370
370
" godox" ,
371
+ " golines" ,
371
372
" err113" ,
372
373
" gofmt" ,
373
374
" gofumpt" ,
1592
1593
}
1593
1594
}
1594
1595
},
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
+ },
1595
1622
"interfacebloat" : {
1596
1623
"type" : " object" ,
1597
1624
"additionalProperties" : false ,
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ func New(settings *config.GoLinesSettings) *Formatter {
19
19
options = golines.ShortenerConfig {
20
20
MaxLen : settings .MaxLen ,
21
21
TabLen : settings .TabLen ,
22
- KeepAnnotations : false , // debug
22
+ KeepAnnotations : false , // golines debug (not usable inside golangci-lint)
23
23
ShortenComments : settings .ShortenComments ,
24
24
ReformatTags : settings .ReformatTags ,
25
25
IgnoreGenerated : false , // handle globally
26
- DotFile : "" , // debug
26
+ DotFile : "" , // golines debug (not usable inside golangci-lint)
27
27
ChainSplitDots : settings .ChainSplitDots ,
28
28
BaseFormatterCmd : "fmt" , // fake cmd
29
29
}
You can’t perform that action at this time.
0 commit comments