From 9a70e9a458267ae6224cea2785da5f66f0687cfa Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Thu, 17 Feb 2022 12:17:39 +0100 Subject: [PATCH] gci: fix configuration naming (#2578) --- .golangci.example.yml | 6 +++--- pkg/config/linters_settings.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.golangci.example.yml b/.golangci.example.yml index 231dbf215214..5ed3c333552f 100644 --- a/.golangci.example.yml +++ b/.golangci.example.yml @@ -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: diff --git a/pkg/config/linters_settings.go b/pkg/config/linters_settings.go index 71e5ed131af1..ba51e7a5c972 100644 --- a/pkg/config/linters_settings.go +++ b/pkg/config/linters_settings.go @@ -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 {