mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Makefile: Add support for "make elvis" when using rebar3
This commit is contained in:
parent
70ee294079
commit
d4d9771a71
2 changed files with 10 additions and 1 deletions
|
@ -642,6 +642,13 @@ dialyzer: erlang_plt deps_plt ejabberd_plt
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#.
|
||||||
|
#' elvis
|
||||||
|
#
|
||||||
|
|
||||||
|
elvis:
|
||||||
|
$(REBAR) lint
|
||||||
|
|
||||||
#.
|
#.
|
||||||
#' test
|
#' test
|
||||||
#
|
#
|
||||||
|
@ -699,6 +706,7 @@ help:
|
||||||
@echo " indent Indent source code using erlang-mode [emacs]"
|
@echo " indent Indent source code using erlang-mode [emacs]"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo " dialyzer Run Dialyzer static analyzer"
|
@echo " dialyzer Run Dialyzer static analyzer"
|
||||||
|
@echo " elvis Run Elvis source code style reviewer [rebar3]"
|
||||||
@echo " hooks Run hooks validator"
|
@echo " hooks Run hooks validator"
|
||||||
@echo " test Run Common Tests suite [rebar3]"
|
@echo " test Run Common Tests suite [rebar3]"
|
||||||
@echo " test-eunit Run EUnit suite [rebar3]"
|
@echo " test-eunit Run EUnit suite [rebar3]"
|
||||||
|
|
|
@ -156,7 +156,8 @@
|
||||||
{branch, "consolidation_fix"}}}
|
{branch, "consolidation_fix"}}}
|
||||||
}]}}.
|
}]}}.
|
||||||
{if_rebar3, {project_plugins, [configure_deps,
|
{if_rebar3, {project_plugins, [configure_deps,
|
||||||
{if_var_true, tools, rebar3_format}
|
{if_var_true, tools, rebar3_format},
|
||||||
|
{if_var_true, tools, rebar3_lint}
|
||||||
]}}.
|
]}}.
|
||||||
{if_not_rebar3, {plugins, [
|
{if_not_rebar3, {plugins, [
|
||||||
deps_erl_opts, override_deps_versions2, override_opts, configure_deps
|
deps_erl_opts, override_deps_versions2, override_opts, configure_deps
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue