Skip to content

Parser for rebar.config.script does not recognise previously defined variables #577

@xurxodiz

Description

@xurxodiz

Running elvis on a rebar.config.script such as:

Vsn = 3.
[{minimum_otp_vsn, Vsn}].

throws an unbound_var exception on Vsn. Changing the period to a comma works around it, though for long files with many preparations it can be clunky to chain so many sentences that could be kept separate (rebar allows for this).

Nevertheless, this also happens for the explicitly available variables CONFIG and SCRIPT provided by rebar3 itself. They are also cause of an unbound_var error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions