Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindProjectConfigPath ¶
FindProjectConfigPath locates .m/config.yaml from cwd to filesystem root.
Types ¶
type InlineEngine ¶
type InlineEngine struct {
// contains filtered or unexported fields
}
InlineEngine evaluates static rules loaded from config files.
func NewInlineEngine ¶
func NewInlineEngine(rules []Rule) (*InlineEngine, error)
func (*InlineEngine) Check ¶
func (e *InlineEngine) Check(toolName string, input json.RawMessage) string
Check returns an empty string if allowed or a deny reason if blocked.
Click to show internal directories.
Click to hide internal directories.