Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .golangci.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ().
Expand All @@ -318,7 +318,7 @@ linters-settings:

# Separators that should be present between sections.
# Default: ["newLine"]
sectionSeparators:
section-separators:
- newLine

gocognit:
Expand Down
6 changes: 3 additions & 3 deletions pkg/config/linters_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down