Skip to content
This repository has been archived by the owner on Jul 1, 2018. It is now read-only.

Commit

Permalink
Merge pull request #8 from inaka/jfacorro.2.initial_setup
Browse files Browse the repository at this point in the history
[Closes #2] Initial setup
  • Loading branch information
Brujo Benavides committed Dec 4, 2015
2 parents c662add + ab74e9c commit d8995ea
Show file tree
Hide file tree
Showing 8 changed files with 6,552 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ ebin
rel/example_project
.concrete/DEV_MODE
.rebar
.erlang.mk
hexer.d
logs
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
PROJECT = hexer

DEPS = shotgun

dep_shotgun = git git://github.com/inaka/shotgun.git 0.1.12

TEST_DEPS = katana mixer

dep_katana = git git://github.com/inaka/erlang-katana.git 0.2.14
dep_mixer = git git://github.com/inaka/mixer.git 0.1.4

include erlang.mk

CT_OPTS = -cover test/cover.spec
59 changes: 59 additions & 0 deletions elvis.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[
{
elvis,
[
{config,
[#{dirs => ["src"],
filter => "*.erl",
rules => [{elvis_style, line_length, #{limit => 80,
skip_comments => false}},
{elvis_style, no_tabs},
{elvis_style, no_trailing_whitespace},
{elvis_style, macro_names},
{elvis_style, macro_module_names},
{elvis_style, operator_spaces, #{rules => [{right, ","},
{right, "++"},
{left, "++"}]}},
{elvis_style, nesting_level, #{level => 3}},
{elvis_style, god_modules, #{limit => 25}},
{elvis_style, no_if_expression},
{elvis_style, invalid_dynamic_call, #{ignore => [elvis]}},
{elvis_style, used_ignored_variable},
{elvis_style, no_behavior_info},
{
elvis_style,
module_naming_convention,
#{regex => "^([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, no_debug_call, #{ignore => [elvis,
elvis_utils]}}
]
},
#{dirs => ["."],
filter => "Makefile",
rules => [{elvis_project, no_deps_master_erlang_mk, #{ignore => []}},
{elvis_project, protocol_for_deps_erlang_mk, #{ignore => [], regex => "git://.*"}}]
},
#{dirs => ["."],
filter => "rebar.config",
rules => [{elvis_project, no_deps_master_rebar, #{ignore => []}},
{elvis_project, protocol_for_deps_rebar, #{ignore => []}}]
},
#{dirs => ["."],
filter => "elvis.config",
rules => [{elvis_project, old_configuration_format}]
}
]
}
]
}
].
Loading

0 comments on commit d8995ea

Please sign in to comment.