-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #317 from paulo-ferraz-oliveira/feature/minor-main…
…tenance-updates Maintenance updates
- Loading branch information
Showing
37 changed files
with
214 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
.eunit | ||
.rebar | ||
deps | ||
ebin | ||
*.o | ||
*.beam | ||
*.plt | ||
erl_crash.dump | ||
log*/ | ||
_build | ||
_* | ||
doc/ | ||
rebar3.crashdump | ||
.rebar3 | ||
logs | ||
test/**/*.beam | ||
|
||
# Ignore elvis escript | ||
elvis | ||
rebar | ||
elvis.d | ||
doc | ||
rebar3.crashdump | ||
.rebar3/ | ||
rebar3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Operator Spaces | ||
|
||
There should be a space in the position (e.g., `right` or `left`) of the operators specified. The | ||
operator can be any string. | ||
|
||
> Works on `.beam` file? Not really! (it consumes results Ok, but these might be unexpected) | ||
## Options | ||
|
||
- `rules :: [{right | left, string()}].` | ||
- default: | ||
- before [1.5.0](https://github.com/inaka/elvis_core/releases/tag/1.5.0): `[{right, ","}, | ||
{right, "++"}, {left, "++"}]` | ||
- since [1.5.0](https://github.com/inaka/elvis_core/releases/tag/1.5.0): | ||
|
||
```erlang | ||
[{right, "++"}, {left, "++"}, {right, "="}, {left, "="}, {right, "+"}, {left, "+"}, | ||
{right, "-"}, {left, "-"}, {right, "*"}, {left, "*"}, {right, "/"}, {left, "/"}, | ||
{right, "=<"}, {left, "=<"}, {right, "<"}, {left, "<"}, {right, ">"}, {left, ">"}, | ||
{right, ">="}, {left, ">="}, {right, "=="}, {left, "=="}, {right, "=:="}, {left, "=:="}, | ||
{right, "/="}, {left, "/="}, {right, "=/="}, {left, "=/="}, {right, "--"}, {left, "--"}, | ||
{right, "=>"}, {left, "=>"}, {right, ":="}, {left, ":="}, {right, "<-"}, {left, "<-"}, | ||
{right, "<="}, {left, "<="}, {right, "||"}, {left, "||"}, {right, "|"}, {left, "|"}, | ||
{right, "::"}, {left, "::"}, {right, "->"}, {left, "->"}, {right, ","}] | ||
``` | ||
|
||
## Example | ||
|
||
```erlang | ||
{elvis_style, operator_spaces, #{ rules => [{right, ","} | ||
, {right, "++"} | ||
, {left, "++"} | ||
] | ||
}} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,58 @@ | ||
%% -*- mode: erlang;erlang-indent-level: 2;indent-tabs-mode: nil -*- | ||
%% ex: ts=4 sw=4 ft=erlang et | ||
%% == Compiler and Profiles == | ||
|
||
%% == Erlang Compiler == | ||
{erl_opts, | ||
[warn_unused_import, warn_export_vars, warnings_as_errors, verbose, report, debug_info]}. | ||
|
||
%% Erlang compiler options | ||
{erl_opts, [debug_info, warn_export_vars, warn_missing_spec, warn_unused_import]}. | ||
{minimum_otp_vsn, "23"}. | ||
|
||
{profiles, | ||
[{test, | ||
[{extra_src_dirs, ["test/examples"]}, | ||
{deps, [{meck, "0.9.2"}]}, | ||
{erl_opts, [nowarn_missing_spec, nowarn_export_all]}, | ||
{dialyzer, [{warnings, [no_return, unmatched_returns, error_handling]}]}]}]}. | ||
{dialyzer, [{warnings, [no_return, error_handling]}, {plt_extra_apps, [common_test]}]}, | ||
{ct_opts, [{sys_config, ["./config/test.config"]}, {logdir, "./logs"}, {verbose, true}]}, | ||
{cover_enabled, true}, | ||
{cover_opts, [verbose]}]}]}. | ||
|
||
{ct_opts, [{sys_config, ["./config/test.config"]}, {logdir, "./logs"}, {verbose, true}]}. | ||
{alias, [{test, [compile, format, hank, xref, dialyzer, ct, cover, ex_doc]}]}. | ||
|
||
%% == Cover == | ||
|
||
{cover_enabled, true}. | ||
|
||
{cover_opts, [verbose]}. | ||
{shell, [{config, "config/test.config"}]}. | ||
|
||
%% == Dependencies == | ||
%% == Dependencies and plugins == | ||
|
||
{deps, [{zipper, "1.0.1"}, {katana_code, "~> 2.0.2"}]}. | ||
{deps, [{zipper, "1.0.1"}, {katana_code, "~> 2.1.0"}]}. | ||
|
||
%% == Dialyzer == | ||
{project_plugins, | ||
[{rebar3_hank, "~> 1.4.0"}, | ||
{rebar3_hex, "~> 7.0.7"}, | ||
{rebar3_format, "~> 1.3.0"}, | ||
{rebar3_ex_doc, "0.2.18"}]}. | ||
|
||
{dialyzer, | ||
[{warnings, [no_return, unmatched_returns, error_handling, unknown]}, | ||
{plt_apps, top_level_deps}, | ||
{plt_extra_apps, [kernel, stdlib]}, | ||
{plt_location, local}]}. | ||
%% == Documentation == | ||
|
||
{shell, [{config, "config/test.config"}]}. | ||
{ex_doc, | ||
[{source_url, <<"https://github.com/inaka/elvis_core">>}, | ||
{extras, [<<"README.md">>, <<"LICENSE">>]}, | ||
{main, <<"readme">>}]}. | ||
|
||
%% == xref == | ||
{hex, [{doc, #{provider => ex_doc}}]}. | ||
|
||
{xref_checks, [undefined_function_calls, locals_not_used, deprecated_function_calls]}. | ||
%% == Format == | ||
|
||
%% == Aliases == | ||
{format, | ||
[{files, | ||
["config/**/*.config", "src/**/*.app.src", "src/**/*.erl", "test/*.erl", "*.config"]}]}. | ||
|
||
{alias, [{test, [format, xref, dialyzer, hank, ct, cover, edoc]}]}. | ||
%% == Hank == | ||
|
||
{project_plugins, | ||
[{rebar3_hex, "~> 7.0.1"}, {rebar3_format, "~> 1.2.0"}, {rebar3_hank, "~> 1.3.0"}]}. | ||
{hank, [{ignore, ["test/*/**"]}]}. | ||
|
||
%% == hank == | ||
%% == Dialyzer + XRef == | ||
|
||
{hank, | ||
[{ignore, | ||
[{"test/*/**", unnecessary_function_arguments}, | ||
{"test/*/**", unused_macros}, | ||
{"test/*/**", unused_callbacks}]}]}. | ||
{dialyzer, [{warnings, [no_return, unmatched_returns, error_handling, unknown]}]}. | ||
|
||
%% == format == | ||
{xref_checks, | ||
[undefined_function_calls, deprecated_function_calls, deprecated_functions]}. | ||
|
||
{format, | ||
[{files, | ||
["config/**/*.config", "src/**/*.app.src", "src/**/*.erl", "test/*.erl", "*.config"]}]}. | ||
{xref_extra_paths, ["test/**"]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.