Skip to content

Commit

Permalink
Merge pull request #11 from inaka/harenson.10.update-repo-and-make-it…
Browse files Browse the repository at this point in the history
…-ready-for-hex.pm

[Fix #10] Update erlang.mk; Add meta testing; Add rebar.config file
  • Loading branch information
Brujo Benavides committed Mar 21, 2016
2 parents 8a993d4 + 6ddcbd0 commit 0bcdbc8
Show file tree
Hide file tree
Showing 9 changed files with 1,276 additions and 658 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ deps
ebin
erl_crash.dump
rel/example_project
xrefr
xrefr
.erlang.mk/
_build/
logs/
nconf.d
nconf_config_test_file.nconf
rebar.lock
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
PROJECT=nconf

TEST_DEPS = katana_test mixer
BUILD_DEPS = inaka_mk hexer_mk
DEP_PLUGINS = inaka_mk hexer_mk

dep_katana_test = git https://github.com/inaka/katana-test.git 0.0.4
dep_mixer = git https://github.com/inaka/mixer.git 0.1.5
dep_inaka_mk = git https://github.com/inaka/inaka.mk 1.0.0
dep_hexer_mk = git https://github.com/inaka/hexer.mk 1.1.0

include erlang.mk

ERLC_OPTS := +warn_unused_vars +warn_export_all +warn_shadow_vars +warn_unused_import +warn_unused_function
ERLC_OPTS += +warn_bif_clash +warn_unused_record +warn_deprecated_function +warn_obsolete_guard +strict_validation
ERLC_OPTS += +warn_export_vars +warn_exported_vars +warn_missing_spec +warn_untyped_record +debug_info
31 changes: 31 additions & 0 deletions elvis.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[
{
elvis,
[
{config,
[#{dirs => ["src"],
filter => "*.erl",
ruleset => erl_files
},
#{dirs => ["test"],
filter => "*.erl",
rules => [{elvis_style, macro_names, disable}],
ruleset => erl_files
},
#{dirs => ["."],
filter => "Makefile",
ruleset => makefiles
},
#{dirs => ["."],
filter => "rebar.config",
ruleset => rebar_config
},
#{dirs => ["."],
filter => "elvis.config",
ruleset => elvis_config
}
]
}
]
}
].
Loading

0 comments on commit 0bcdbc8

Please sign in to comment.