Dogma.Rule behaviour

The Rule behaviour, used to assert the interface used by our Rule modules.

Source

Callbacks

test/1

Specs:

  • test(%Dogma.Script{ast: term, errors: term, lines: term, path: term, processed_lines: term, processed_source: term, source: term, valid?: term}) :: []

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

Source