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

Implicit funs shouldn't be counted as a level. #342

Closed
jfacorro opened this issue Feb 8, 2016 · 2 comments
Closed

Implicit funs shouldn't be counted as a level. #342

jfacorro opened this issue Feb 8, 2016 · 2 comments

Comments

@jfacorro
Copy link
Contributor

jfacorro commented Feb 8, 2016

The following code warns about an expression past the nesting level of 3.

-module(hello).

f(X) ->
  case X of
    1 -> ok;
    _ ->
      case X of
        2 ->
          fun f/1;
        _ -> ok
      end
  end.
@jfacorro
Copy link
Contributor Author

jfacorro commented Feb 8, 2016

This can be fixed by changing the name of the nodes for implicit funs in ktn_code from inaka/erlang-katana.

@jfacorro
Copy link
Contributor Author

jfacorro commented Feb 8, 2016

When inaka/erlang-katana#130 is fixed and a new version is released we should update that in elvis_core and close this issue.

@jfacorro jfacorro added the bug label Feb 8, 2016
jfacorro added a commit to jfacorro/elvis_core that referenced this issue Mar 20, 2017
elbrujohalcon pushed a commit to inaka/elvis_core that referenced this issue Mar 21, 2017
…rences-as-level

[inaka/elvis#342] function references shouldn't count as a level
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants