Dogma v0.1.16 Dogma.Rule.FunctionName

A rule that disallows function names not in snake_case.

snake_case is when only lowercase letters are used, and words are separated with underscores, rather than spaces.

For example, this rule considers these function definition valid:

def my_mood do
  :happy
end

defp my_belly do
  :full
end

But it considers these invalid:

def myMood do
  :sad
end

defp myBelly do
  :empty
end

Summary

Functions

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

Functions

test(rule, script)

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