File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -359,8 +359,8 @@ linters-settings:
359359
360360 # Section configuration to compare against.
361361 # Section names are case-insensitive and may contain parameters in ().
362- # The order of sections is always `standard > default > custom > blank > dot`,
363- # it cannot be changed and doesn't follow the order of `sections` option.
362+ # The default order of sections is `standard > default > custom > blank > dot`,
363+ # If `custom-order` is `true`, it follows the order of `sections` option.
364364 # Default: ["standard", "default"]
365365 sections :
366366 - standard # Standard section: captures all standard packages.
@@ -373,6 +373,11 @@ linters-settings:
373373 # Default: true
374374 skip-generated : false
375375
376+ # Enable custom order of sections.
377+ # If `true`, make the section order the same as the order of `sections`.
378+ # Default: false
379+ custom-order : true
380+
376381 gocognit :
377382 # Minimal code complexity to report
378383 # Default: 30 (but we recommend 10-20)
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ require (
2121 github.com/breml/errchkjson v0.3.0
2222 github.com/butuzov/ireturn v0.1.1
2323 github.com/charithe/durationcheck v0.0.9
24- github.com/daixiang0/gci v0.5 .0
24+ github.com/daixiang0/gci v0.6 .0
2525 github.com/denis-tingaikin/go-header v0.4.3
2626 github.com/esimonov/ifshort v1.0.4
2727 github.com/fatih/color v1.13.0
You can’t perform that action at this time.
0 commit comments