A new way to include Elvis in your project
Recently Erlang.mk it was updated and now we have a new way to include Elvis (the fantastic Erlang style reviewer) in your projects as a plugin.
How? is simple only you need to add the following in your Makefile:
BUILD_DEPS = elvis_mk dep_elvis_mk = git firstname.lastname@example.org:inaka/elvis.mk.git c3bb3f5 DEP_PLUGINS = elvis_mk
make help in order to check what targets are available for
For example you can run
Loading files... Loading src/your_module.erl Applying rules... # src/your_module.erl [FAIL] - operator_spaces - Missing space after "," on line 27 Loading files... Loading Makefile Applying rules... # Makefile [OK] Loading files... Loading elvis.config Applying rules... # elvis.config [OK] make: *** [elvis] Error 1