mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
new-linter: ireturn (checks for function return type) (#2219)
This commit is contained in:
parent
813ba7d953
commit
2ea496f22b
11 changed files with 130 additions and 0 deletions
|
@ -110,6 +110,7 @@ type LintersSettings struct {
|
|||
Gosimple StaticCheckSettings
|
||||
Govet GovetSettings
|
||||
Ifshort IfshortSettings
|
||||
Ireturn IreturnSettings
|
||||
ImportAs ImportAsSettings
|
||||
Lll LllSettings
|
||||
Makezero MakezeroSettings
|
||||
|
@ -186,6 +187,11 @@ type ExhaustiveStructSettings struct {
|
|||
StructPatterns []string `mapstructure:"struct-patterns"`
|
||||
}
|
||||
|
||||
type IreturnSettings struct {
|
||||
Allow []string `mapstructure:"allow"`
|
||||
Reject []string `mapstructure:"reject"`
|
||||
}
|
||||
|
||||
type ForbidigoSettings struct {
|
||||
Forbid []string `mapstructure:"forbid"`
|
||||
ExcludeGodocExamples bool `mapstructure:"exclude-godoc-examples"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue