defmodule Dogma.Rules do

  @doc """
  Returns a list of all modules that define a Dogma rule.

  In order to add a new rule, you must namespace it under Dogma.Rules, and add
  it to the list in the Dogma.Rules.rule_list private function.
  """
  def list do
    Enum.map rule_list, &Module.concat( Dogma.Rules, &1 )
  end

  defp rule_list do
    [
      DebuggerStatement,
      FinalNewline,
      LineLength,
      LiteralInCondition,
      TrailingBlankLines,
      TrailingWhitespace,
      UnlessElse,
    ]
  end
end

defmodule Dogma.Rules do

  @doc """
  Returns a list of all modules that define a Dogma rule.

  In order to add a new rule, you must namespace it under Dogma.Rules, and add
  it to the list in the Dogma.Rules.rule_list private function.
  """
  def list do
    Enum.map rule_list, &Module.concat( Dogma.Rules, &1 )
  end

  defp rule_list do
    [
      DebuggerStatement,
      FinalNewline,
      LineLength,
      LiteralInCondition,
      NegatedIfUnless,
      TrailingBlankLines,
      TrailingWhitespace,
      UnlessElse,
    ]
  end
end

Add NegatedIfUnless to rule list.
Add NegatedIfUnless to rule list.

I forgot *again*. We need to resolve #24

simonewebdesign/dogma,jacknoble/dogma,meadsteve/dogma,henrik/dogma,aerosol/dogma,rrrene/dogma,iszlai/dogma,5thWall/dogma,timbuchwaldt/dogma,knewter/dogma,linearregression/dogma,eksperimental/dogma