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

Detect conversions from literals #155

Open
igaray opened this issue Jan 2, 2019 · 0 comments
Open

Detect conversions from literals #155

igaray opened this issue Jan 2, 2019 · 0 comments

Comments

@igaray
Copy link
Member

igaray commented Jan 2, 2019

Sometimes people are lazy or are very tired and write code like this:

        maps:from_list([
            {<<"A1">>, [0, 1, 2]},
            {<<"A2">>, [0, 3]}
        ]),

Elvis could detect conversion to and from maps, lists, and possibly other data types when the argument to the conversion function is a literal value. Of course it won't stop people from assigning literal values to a variable and passing that, but nobody's perfect.

@elbrujohalcon elbrujohalcon transferred this issue from inaka/elvis Jan 7, 2021
@elbrujohalcon elbrujohalcon added this to the eventually 🙄 milestone May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants