Dogma.Rule.VariableName

A rule that disallows variable names not in snake_case.

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

Good:

my_mood = :happy
[number_of_cats] = [3]
{function_name, _, other_stuff} = node

Bad:

myMood = :sad
[numberOfCats] = [3]
{functionName, meta, otherStuff} = node
Source

Summary

test(script, list2 \\ [])

Callback implementation for Dogma.Rule.test/2

Functions

test(script, list2 \\ [])

Callback implementation for Dogma.Rule.test/2.

Source