Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NoSetterDefaultSpec ¶
NoSetterDefaultSpec returns a fresh copy of the rule's static metadata (with the hard-coded default severity, before any construction-time override). The returned value is independent — mutating it has no effect on subsequent calls. Tooling (--list-rules, doc generators, plugin catalogs) should call this rather than reading a package-level variable.
Types ¶
type NoPanicInDomain ¶
type NoPanicInDomain struct {
// contains filtered or unexported fields
}
func NewNoPanicInDomain ¶
func NewNoPanicInDomain(opts ...Option) *NoPanicInDomain
func (*NoPanicInDomain) Spec ¶
func (r *NoPanicInDomain) Spec() core.RuleSpec
type NoSetter ¶
type NoSetter struct {
// contains filtered or unexported fields
}
func NewNoSetter ¶
type Option ¶
type Option func(*ruleConfig)
func WithAllowedFunctions ¶
WithAllowedFunctions exempts function names. Patterns may end in "*" to allow families such as Must* helpers.
func WithAllowedPaths ¶
WithAllowedPaths exempts project-relative file or subtree patterns. Patterns may end in "/..." to match a directory and all descendants.
func WithInspectedLayers ¶
WithInspectedLayers sets the architecture sublayers checked by this rule. Examples include "core/model", "core/svc", "event", "app", "entity", "usecase", "domain", "core", and "application". Blank names are ignored.