Dogma v0.1.16 Dogma.Rule protocol

Summary

Functions

A function that tests a script to see if it violates the rule, and returns a list of errors

Types

t()
t :: term

Functions

test(rule, script)

A function that tests a script to see if it violates the rule, and returns a list of errors.

The first argument is the struct that represents the rule and contains the configuration for the rule.

The second argument is the script struct to be tested.