From d4433407a3e12bc9c3485996419891b0249b2dcc Mon Sep 17 00:00:00 2001 From: Brujo Benavides Date: Wed, 11 Nov 2015 15:57:15 -0300 Subject: [PATCH] [#79] Add meta testing, waiting for inaka/erlang-katana#89 --- elvis.config | 18 ++++++++++++++---- test/spts_meta_SUITE.erl | 17 +++++++++++++++++ 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 test/spts_meta_SUITE.erl diff --git a/elvis.config b/elvis.config index c8ef0bf..8ad9fa6 100644 --- a/elvis.config +++ b/elvis.config @@ -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"], @@ -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 => []}}] } ] } diff --git a/test/spts_meta_SUITE.erl b/test/spts_meta_SUITE.erl new file mode 100644 index 0000000..83e6ece --- /dev/null +++ b/test/spts_meta_SUITE.erl @@ -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].