Skip to content

Commit

Permalink
rename is_rule_behaviour to is_relevant_behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
bormilan committed Oct 18, 2024
1 parent 379a088 commit 63aef9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elvis_style.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ no_init_lists(Config, Target, RuleConfig) ->
Root = get_root(Config, Target, RuleConfig),

InitFuns =
case is_rule_behaviour(Root, RuleConfig) of
case is_relevant_behaviour(Root, RuleConfig) of
true ->
IsFunction = fun(Node) -> ktn_code:type(Node) == function end,
FunctionNodes = elvis_code:find(IsFunction, Root),
Expand Down Expand Up @@ -1175,7 +1175,7 @@ no_init_lists(Config, Target, RuleConfig) ->
[]
end.

is_rule_behaviour(Root, RuleConfig) ->
is_relevant_behaviour(Root, RuleConfig) ->
ConfigBehaviors = option(behaviours, RuleConfig, no_init_lists),
IsBehaviour = fun(Node) -> ktn_code:type(Node) == behaviour end,
Behaviours = elvis_code:find(IsBehaviour, Root),
Expand Down

0 comments on commit 63aef9b

Please sign in to comment.