Skip to content

Commit

Permalink
[#79] Add meta testing, waiting for inaka/erlang-katana#89
Browse files Browse the repository at this point in the history
  • Loading branch information
Brujo Benavides committed Nov 11, 2015
1 parent 7d86af5 commit d443340
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
18 changes: 14 additions & 4 deletions elvis.config
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@
#{regex => "^s([a-z][a-z0-9]*_?)*(_SUITE)?$",
ignore => []}
},
{
elvis_style,
function_naming_convention,
#{regex => "^([a-z][a-z0-9]*_?)*$"}
},
{elvis_style, state_record_and_type},
{elvis_style, no_spec_with_records},
{elvis_style, dont_repeat_yourself, #{min_complexity => 10}}
{elvis_style, dont_repeat_yourself, #{min_complexity => 10}},
{elvis_style, no_debug_call, #{ignore => []}}
]
},
#{dirs => ["test"],
Expand All @@ -54,15 +60,19 @@
#{regex => "^s([a-z][a-z0-9]*_?)*(_SUITE)?$",
ignore => []}
},
{
elvis_style,
function_naming_convention,
#{regex => "^([a-z][a-z0-9]*_?)*$"}
},
{elvis_style, state_record_and_type},
{elvis_style, no_spec_with_records},
{elvis_style, dont_repeat_yourself, #{min_complexity => 25}}
{elvis_style, no_spec_with_records}
]
},
#{dirs => ["."],
filter => "Makefile",
rules => [{elvis_project, no_deps_master_erlang_mk, #{ignore => []}},
{elvis_project, protocol_for_deps_erlang_mk, #{ignore => [], regex => "https://.*"}}]
{elvis_project, protocol_for_deps_erlang_mk, #{ignore => []}}]
}
]
}
Expand Down
17 changes: 17 additions & 0 deletions test/spts_meta_SUITE.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-module(spts_meta_SUITE).

-include_lib("mixer/include/mixer.hrl").
-mixin([{ ktn_meta_SUITE
, [ all/0
, xref/1
, dialyzer/1
, elvis/1
]
}]).

-export([init_per_suite/1]).

-type config() :: [{atom(), term()}].

-spec init_per_suite(config()) -> config().
init_per_suite(Config) -> [{application, serpents} | Config].

0 comments on commit d443340

Please sign in to comment.