Skip to content

Commit 0907a1d

Browse files
committed
fix: add godoclint config type
Signed-off-by: Babak K. Shandiz <[email protected]>
1 parent a5552d3 commit 0907a1d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

pkg/config/linters_settings.go

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ type LintersSettings struct {
242242
Goconst GoConstSettings `mapstructure:"goconst"`
243243
Gocritic GoCriticSettings `mapstructure:"gocritic"`
244244
Gocyclo GoCycloSettings `mapstructure:"gocyclo"`
245+
Godoclint GodoclintSettings `mapstructure:"godoclint"`
245246
Godot GodotSettings `mapstructure:"godot"`
246247
Godox GodoxSettings `mapstructure:"godox"`
247248
Goheader GoHeaderSettings `mapstructure:"goheader"`
@@ -520,6 +521,42 @@ type GoCycloSettings struct {
520521
MinComplexity int `mapstructure:"min-complexity"`
521522
}
522523

524+
type GodoclintSettings struct {
525+
Include []string `mapstructure:"include"`
526+
Exclude []string `mapstructure:"exclude"`
527+
Enable []string `mapstructure:"enable"`
528+
Disable []string `mapstructure:"disable"`
529+
Options struct {
530+
MaxLen struct {
531+
Length *uint `mapstructure:"length"`
532+
IncludeTests *bool `mapstructure:"include-tests"`
533+
} `mapstructure:"max-len"`
534+
PkgDoc struct {
535+
StartWith *string `mapstructure:"start-with"`
536+
IncludeTests *bool `mapstructure:"include-tests"`
537+
} `mapstructure:"pkg-doc"`
538+
SinglePkgDoc struct {
539+
IncludeTests *bool `mapstructure:"include-tests"`
540+
}
541+
RequirePkgDoc struct {
542+
IncludeTests *bool `mapstructure:"include-tests"`
543+
} `mapstructure:"require-pkg-doc"`
544+
RequireDoc struct {
545+
IgnoreExported *bool `mapstructure:"ignore-exported"`
546+
IgnoreUnexported *bool `mapstructure:"ignore-unexported"`
547+
IncludeTests *bool `mapstructure:"include-tests"`
548+
} `mapstructure:"require-doc"`
549+
StartWithName struct {
550+
Pattern *string `mapstructure:"pattern"`
551+
IncludeUnexported *bool `mapstructure:"include-unexported"`
552+
IncludeTests *bool `mapstructure:"include-tests"`
553+
} `mapstructure:"start-with-name"`
554+
NoUnusedLink struct {
555+
IncludeTests *bool `mapstructure:"include-tests"`
556+
} `mapstructure:"no-unused-link"`
557+
} `mapstructure:"options"`
558+
}
559+
523560
type GodotSettings struct {
524561
Scope string `mapstructure:"scope"`
525562
Exclude []string `mapstructure:"exclude"`

0 commit comments

Comments
 (0)