Skip to content
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

Bypass operator_spaces when unable to find node type #189

Merged
merged 1 commit into from
Jan 9, 2015

Conversation

andreineculau
Copy link
Contributor

Elvis reported erroneously that there is a missing space in https://github.com/for-GET/katt/blob/38a71342aa33ce23f01efce8557a2c71b61e37f0/src/katt_util.erl#L329

After investigating, it seems that elvis (or actually katana) is unable to find the node. My guess is that the guard is too naïve

when NodeLine == Line->
but I'm not going to investigate that now.

Regardless of the core reason, if elvis find a possible error, but cannot verify that it is indeed an error (in this case find the node), it's better to keep quiet (no false positives).

@elbrujohalcon
Copy link
Member

@jfacorro please review

jfacorro added a commit that referenced this pull request Jan 9, 2015
Bypass operator_spaces when unable to find node type
@jfacorro jfacorro merged commit fbb9308 into inaka:master Jan 9, 2015
@elbrujohalcon
Copy link
Member

I'm reverting this PR because it breaks this test.
The line (in the code) that goes undetected is this one:

  _Unless = [we, consider]++ [operands, as, well],

We must find a way to handle both @andreineculau's scenario and also the currently tested one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants