-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-atom catch
element reported as atom
#170
Comments
Wow! Amazing catch! I bet it has something to do with how |
Nope. |
It's [#{attrs =>
#{location => {9,5},text => "Throw",value => throw},
type => atom},
#{attrs =>
#{location => {9,5},name => 'Throw',text => "Throw"},
type => var},
#{attrs => #{location => {9,5},name => '_',text => "Throw"},
type => var}] It's normalizing the rest of the pattern as |
This is where the bug appears: elvis_core/src/elvis_style.erl Line 751 in 19bfe9f
We should use |
I'll try to look at it one of these days, if time allows. |
Attempted fixing this with #216 |
While
is perfectly reasonable and possible,
elvis
still complains that atomThrow
"does not respect the format ...".Edit:
(workaround)
The text was updated successfully, but these errors were encountered: