Dogma v0.1.16 Dogma.Rule.FunctionArity

A rule that disallows functions and macros with arity greater than 4, meaning a function may not take more than 4 arguments.

By default this function is considered invalid by this rule:

def transform(a, b, c, d, e) do
  # Do something
end

The maximum allowed arity for this rule can be configured with the max option in your mix config.

Summary

Functions

Callback implementation for c:Dogma.Rule.test/2

Functions

test(rule, script)

Callback implementation for c:Dogma.Rule.test/2.