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 368368 " gocyclo" ,
369369 " godot" ,
370370 " godox" ,
371+ " golines" ,
371372 " err113" ,
372373 " gofmt" ,
373374 " gofumpt" ,
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 ,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments