Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Dogma fixes #31

Merged
merged 2 commits into from
Oct 13, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ use Mix.Config
# Configuration from the imported file will override the ones defined
# here (which is why it is important to import them last).
#
# import_config "#{Mix.env}.exs"
import_config "#{Mix.env}.exs"
41 changes: 41 additions & 0 deletions config/dev.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
use Mix.Config

defmodule Sqlitex.DogmaRuleSet do
@behaviour Dogma.RuleSet
def rules do
[
{BarePipeChainStart},
{ComparisonToBoolean},
{DebuggerStatement},
{ExceptionName},
{FinalCondition},
{FinalNewline},
{FunctionArity, max: 4},
{FunctionName},
{HardTabs},
{LineLength, max_length: 100},
{LiteralInCondition},
{LiteralInInterpolation},
{MatchInCondition},
{ModuleAttributeName},
{ModuleDoc},
{ModuleName},
{NegatedIfUnless},
{PredicateName},
{QuotesInString},
{Semicolon},
{TrailingBlankLines},
{TrailingWhitespace},
{UnlessElse},
{VariableName},
{WindowsLineEndings},
]
end
end


config :dogma,
rule_set: Sqlitex.DogmaRuleSet,
exclude: [
~r(\Atest/test_database.exs),
]
1 change: 1 addition & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use Mix.Config
5 changes: 3 additions & 2 deletions mix.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
%{"decimal": {:hex, :decimal, "1.1.0"},
"dogma": {:hex, :dogma, "0.0.7"},
"dialyze": {:hex, :dialyze, "0.2.0"},
"dogma": {:hex, :dogma, "0.0.9"},
"earmark": {:hex, :earmark, "0.1.17"},
"esqlite": {:hex, :esqlite, "0.2.1"},
"ex_doc": {:hex, :ex_doc, "0.9.0"},
"ex_doc": {:hex, :ex_doc, "0.10.0"},
"inch_ex": {:hex, :inch_ex, "0.4.0"},
"pipe": {:hex, :pipe, "0.0.2"},
"poison": {:hex, :poison, "1.5.0"}}