Skip to content

Missing label (on missing beginning bracket/parens) #68

Description

@schneems

When we have a missing closing bracket i.e. [ but not ] dead_end detects it correct. Same with { and missing } etc. But when the first one is missing, dead_end doesn't know it and so it doesn't give us a label.

Here's an example:

$ cat scratch.rb
class Cat
  def to_json
      name: name,
      fur_color: fur_color,
      type: 'Cat',
      better_than_dog: false }.to_json
  end
end
⛄ 3.0.2 🚀  /private/tmp
$ dead_end ./scratch.rb

file: /private/tmp/scratch.rb
simplified:

      1  class Cat
      2    def to_json
    ❯ 3        name: name,
    ❯ 4        fur_color: fur_color,
    ❯ 5        type: 'Cat',
    ❯ 6        better_than_dog: false }.to_json
      7    end
      8  end

Expected

I expect a label/banner describing the issue as missing a {

Actual

There is no description at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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