Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Version int `yaml:"version,omitempty"` Threshold *Threshold `yaml:"threshold,omitempty"` DependenciesRules []*DependenciesRule `yaml:"dependenciesRules,omitempty"` ContentRules []*ContentsRule `yaml:"contentsRules,omitempty"` CyclesRules []*CyclesRule `yaml:"cyclesRules,omitempty"` FunctionsRules []*FunctionsRule `yaml:"functionsRules,omitempty"` NamingRules []*NamingRule `yaml:"namingRules,omitempty"` }
func LoadConfig ¶
type ContentsRule ¶
type ContentsRule struct { Package string `yaml:"package,omitempty"` ShouldOnlyContainInterfaces bool `yaml:"shouldOnlyContainInterfaces,omitempty"` ShouldOnlyContainStructs bool `yaml:"shouldOnlyContainStructs,omitempty"` ShouldOnlyContainFunctions bool `yaml:"shouldOnlyContainFunctions,omitempty"` ShouldOnlyContainMethods bool `yaml:"shouldOnlyContainMethods,omitempty"` ShouldNotContainInterfaces bool `yaml:"shouldNotContainInterfaces,omitempty"` ShouldNotContainStructs bool `yaml:"shouldNotContainStructs,omitempty"` ShouldNotContainFunctions bool `yaml:"shouldNotContainFunctions,omitempty"` ShouldNotContainMethods bool `yaml:"shouldNotContainMethods,omitempty"` }
type CyclesRule ¶
type Dependencies ¶ added in v1.0.0
type DependenciesRule ¶
type DependenciesRule struct { Package string `yaml:"package,omitempty"` ShouldOnlyDependsOn *Dependencies `yaml:"shouldOnlyDependsOn,omitempty"` ShouldNotDependsOn *Dependencies `yaml:"shouldNotDependsOn,omitempty"` }
type DeprecatedConfig ¶ added in v1.0.0
type DeprecatedConfig struct { DependenciesRules []*DeprecatedDependenciesRule `yaml:"dependenciesRules,omitempty"` ContentRules []*ContentsRule `yaml:"contentsRules,omitempty"` CyclesRules []*CyclesRule `yaml:"cyclesRules,omitempty"` FunctionsRules []*FunctionsRule `yaml:"functionsRules,omitempty"` NamingRules []*NamingRule `yaml:"namingRules,omitempty"` }
func LoadDeprecatedConfig ¶ added in v1.0.0
func LoadDeprecatedConfig(configPath string) (*DeprecatedConfig, error)
type DeprecatedDependenciesRule ¶ added in v1.0.0
type DeprecatedDependenciesRule struct { Package string `yaml:"package,omitempty"` ShouldOnlyDependsOn []string `yaml:"shouldOnlyDependsOn,omitempty"` ShouldNotDependsOn []string `yaml:"shouldNotDependsOn,omitempty"` ShouldOnlyDependsOnExternal []string `yaml:"shouldOnlyDependsOnExternal,omitempty"` ShouldNotDependsOnExternal []string `yaml:"shouldNotDependsOnExternal,omitempty"` }
type FunctionsRule ¶
type InterfaceImplementationRule ¶ added in v0.4.0
type NamingRule ¶ added in v0.4.0
type NamingRule struct { Package string `yaml:"package"` InterfaceImplementationNamingRule *InterfaceImplementationRule `yaml:"interfaceImplementationNamingRule"` }
Click to show internal directories.
Click to hide internal directories.