Dogma v0.1.16 Dogma.Rule.FunctionParentheses

A rule that ensures function declarations use parentheses if and only if they have arguments.

For example, this rule considers these function declarations valid:

def foo do
  :bar
end

defp baz(a, b) do
  :fudd
end

But it considers these invalid:

def foo() do
  :bar
end

defp baz a, b do
  :fudd
end

Summary

Functions

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

Functions

test(rule, script)

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