gci: fix configuration naming ()

This commit is contained in:
Ludovic Fernandez 2022-02-17 12:17:39 +01:00 committed by GitHub
parent 05e7d32e44
commit 9a70e9a458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

@ -300,11 +300,11 @@ linters-settings:
# Checks that no inline Comments are present.
# Default: false
no-inlineComments: true
no-inline-comments: true
# Checks that no prefix Comments(comment lines above an import) are present.
# Default: false
no-prefixComments: true
no-prefix-comments: true
# Section configuration to compare against.
# Section names are case-insensitive and may contain parameters in ().
@ -318,7 +318,7 @@ linters-settings:
# Separators that should be present between sections.
# Default: ["newLine"]
sectionSeparators:
section-separators:
- newLine
gocognit:

@ -258,10 +258,10 @@ type FunlenSettings struct {
type GciSettings struct {
LocalPrefixes string `mapstructure:"local-prefixes"` // Deprecated
NoInlineComments bool `mapstructure:"no-inlineComments"`
NoPrefixComments bool `mapstructure:"no-prefixComments"`
NoInlineComments bool `mapstructure:"no-inline-comments"`
NoPrefixComments bool `mapstructure:"no-prefix-comments"`
Sections []string `mapstructure:"sections"`
SectionSeparator []string `mapstructure:"sectionSeparators"`
SectionSeparator []string `mapstructure:"section-separators"`
}
type GocognitSettings struct {