Skip to content

Commit

Permalink
Act on CI results: run rebar3 test on OTP 26.x
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Sep 16, 2024
1 parent 6ceddad commit 6225369
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
19 changes: 15 additions & 4 deletions src/elvis_style.erl
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,14 @@ default(operator_spaces) ->
{right, "::"}, {left, "::"}, {right, "->"}, {left, "->"}, {right, ","}, {left, "!"},
{right, "!"}]};
default(no_space) ->
#{rules => [{right, "("}, {left, ")"}, {left, ","}, {left, ":"}, {right, ":"},
{right, "#"}, {right, "?"}]};
#{rules =>
[{right, "("},
{left, ")"},
{left, ","},
{left, ":"},
{right, ":"},
{right, "#"},
{right, "?"}]};
default(nesting_level) ->
#{level => 4};
default(god_modules) ->
Expand Down Expand Up @@ -188,8 +194,13 @@ default(no_call) ->
#{no_call_functions => []};
default(no_debug_call) ->
#{debug_functions =>
[{ct, pal}, {ct, print}, {erlang, display, 1}, {io, format, 1}, {io, format, 2},
{io, put_chars, 1}, {io, put_chars, 2}]};
[{ct, pal},
{ct, print},
{erlang, display, 1},
{io, format, 1},
{io, format, 2},
{io, put_chars, 1},
{io, put_chars, 2}]};
default(no_common_caveats_call) ->
#{caveat_functions =>
[{timer, send_after, 2},
Expand Down
3 changes: 1 addition & 2 deletions test/style_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ verify_function_naming_convention(Config) ->
RuleConfig,
PathPass),

RuleConfig2 =
#{regex => DefaultRegex, ignore => [fail_function_naming_convention]},
RuleConfig2 = #{regex => DefaultRegex, ignore => [fail_function_naming_convention]},
[] =
elvis_core_apply_rule(Config,
elvis_style,
Expand Down

0 comments on commit 6225369

Please sign in to comment.