package
0.0.0-20230817110936-bd26d7905e47
Repository: https://github.com/mrtazz/checkmake.git
Documentation: pkg.go.dev
# Packages
Package maxbodylength implements the ruleset for making sure target bodies are kept short and thus hopefully somewhat not complex.
Package minphony implements the ruleset for making sure required minimum phony targets are present.
Package phonydeclared implements the ruleset for making sure all targets that don't have a rule body are marked PHONY.
Package timestampexpanded implements the ruleset for making sure a variable that likely represents a timestamp is simply expanded so it doesn't change in between rule executions.
# Functions
GetRegisteredRules returns the internal ruleRegistry.
RegisterRule let's you register a rule for inclusion in the validator.
# Structs
RuleViolation represents a basic validation failure.
# Interfaces
Rule is the type of a rule function.
# Type aliases
RuleConfig is a simple string/string map to hold key/value configuration for rules.
RuleConfigMap is a map that stores RuleConfig maps keyed by the rule name.
RuleRegistry is the type to hold rules keyed by their name.
RuleViolationList is a list of Violation types and the return type of a Rule function.