Documentation ¶ Index ¶ func NewMaxDepthRule(log *slog.Logger, cfg Config) type Config func DefaultConfig() Config type MaxRule Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewMaxDepthRule ¶ func NewMaxDepthRule(log *slog.Logger, cfg Config) Types ¶ type Config ¶ type Config struct { Enabled bool `yaml:"enabled"` // deprecated Max int `yaml:"max"` // deprecated Field MaxRule `yaml:"field"` List MaxRule `yaml:"list"` RejectOnFailure bool `yaml:"reject_on_failure"` // deprecated } func DefaultConfig ¶ added in v0.17.0 func DefaultConfig() Config type MaxRule ¶ added in v0.17.0 type MaxRule struct { Enabled bool `yaml:"enabled"` Max int `yaml:"max"` RejectOnFailure bool `yaml:"reject_on_failure"` } Source Files ¶ View all Source files max_depth.go Click to show internal directories. Click to hide internal directories.