Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit b6c17b1

Browse files
author
Josh Price
committed
Add Dogma
1 parent d5fd71e commit b6c17b1

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

config/dogma.exs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
use Mix.Config
2+
alias Dogma.Rule
3+
4+
config :dogma,
5+
6+
# Select a set of rules as a base
7+
rule_set: Dogma.RuleSet.All,
8+
9+
# Pick paths not to lint
10+
exclude: [
11+
~r(\Atest/),
12+
],
13+
14+
# Override an existing rule configuration
15+
override: [
16+
%Rule.LineLength{max_length: 120},
17+
]

mix.exs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ defmodule GraphQL.Plug.Mixfile do
2424
end
2525

2626
defp deps do
27-
[{:earmark, "~> 0.1", only: :dev},
27+
[{:credo, "~> 0.3", only: :dev},
28+
{:dogma, "~> 0.1", only: :dev},
29+
{:earmark, "~> 0.1", only: :dev},
2830
{:ex_doc, "~> 0.11", only: :dev},
2931
{:mix_test_watch, only: :dev},
3032
{:cowboy, "~> 1.0"},
3133
{:plug, "~> 0.14 or ~> 1.0"},
32-
{:poison, "~> 1.5 or ~> 2.0"},
34+
{:poison, "~> 1.5 or ~> 2.0", override: true},
3335
{:graphql, "~> 0.1.2"}]
3436
end
3537

mix.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
%{"cowboy": {:hex, :cowboy, "1.0.4"},
1+
%{"bunt": {:hex, :bunt, "0.1.5"},
2+
"cowboy": {:hex, :cowboy, "1.0.4"},
23
"cowlib": {:hex, :cowlib, "1.0.2"},
4+
"credo": {:hex, :credo, "0.3.7"},
5+
"dogma": {:hex, :dogma, "0.1.3"},
36
"earmark": {:hex, :earmark, "0.1.19"},
47
"ex_doc": {:hex, :ex_doc, "0.11.0"},
58
"fs": {:hex, :fs, "0.9.2"},
69
"graphql": {:hex, :graphql, "0.1.2"},
710
"mix_test_watch": {:hex, :mix_test_watch, "0.2.6"},
811
"plug": {:hex, :plug, "1.0.2"},
9-
"poison": {:hex, :poison, "2.1.0"},
12+
"poison": {:hex, :poison, "1.5.2"},
1013
"ranch": {:hex, :ranch, "1.2.0"}}

0 commit comments

Comments
 (0)