Skip to content

Detect correct missing open brace #53

@jkeiser

Description

@jkeiser

Right now, this will report closing { without open } on the end brace, which makes it really hard to find out where the actual error was. Indentation makes it pretty clear, so we should modify the rules to make it better:

MyClass: {
    Function1: {
        if (:x == :y) # this is the line with the missing {
           10
        } # error SHOULD be reported here
    }
    Function2: {
        :x + :y
    }
} # error is reported here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions