From ce448f635ac4ed01f85d2a610f91f931934322e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=B3r=20Mil=C3=A1n?= <71042542+bormilan@users.noreply.github.com> Date: Thu, 5 Dec 2024 16:15:59 +0100 Subject: [PATCH] Update src/elvis_style.erl Co-authored-by: Brujo Benavides --- src/elvis_style.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elvis_style.erl b/src/elvis_style.erl index 47d240a..d2f818a 100644 --- a/src/elvis_style.erl +++ b/src/elvis_style.erl @@ -1165,7 +1165,7 @@ atom_naming_convention(Config, Target, RuleConfig) -> specific_or_default(option(enclosed_atoms, RuleConfig, atom_naming_convention), Regex), ForbiddenEnclosedRegex = specific_or_default(option(forbidden_enclosed_regex, RuleConfig, atom_naming_convention), - Regex), + ForbiddenRegex), AtomNodes = elvis_code:find(fun is_atom_node/1, Root, #{traverse => all, mode => node}), check_atom_names(Regex, ForbiddenRegex,