mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
depguard: migrate to v2 (#3795)
This commit is contained in:
parent
cec16b68ab
commit
fb746c4b04
13 changed files with 135 additions and 278 deletions
|
@ -253,12 +253,18 @@ type Cyclop struct {
|
|||
}
|
||||
|
||||
type DepGuardSettings struct {
|
||||
ListType string `mapstructure:"list-type"`
|
||||
Packages []string
|
||||
IncludeGoRoot bool `mapstructure:"include-go-root"`
|
||||
PackagesWithErrorMessage map[string]string `mapstructure:"packages-with-error-message"`
|
||||
IgnoreFileRules []string `mapstructure:"ignore-file-rules"`
|
||||
AdditionalGuards []DepGuardSettings `mapstructure:"additional-guards"`
|
||||
Rules map[string]*DepGuardList `mapstructure:"rules"`
|
||||
}
|
||||
|
||||
type DepGuardList struct {
|
||||
Files []string `mapstructure:"files"`
|
||||
Allow []string `mapstructure:"allow"`
|
||||
Deny []DepGuardDeny `mapstructure:"deny"`
|
||||
}
|
||||
|
||||
type DepGuardDeny struct {
|
||||
Pkg string `mapstructure:"pkg"`
|
||||
Desc string `mapstructure:"desc"`
|
||||
}
|
||||
|
||||
type DecorderSettings struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue