Skip to content

Support new Ruby Hash shorthand syntax #51

Open
@TSMMark

Description

@TSMMark

Style/HashSyntax: Omit the hash value.RuboCop(Style/HashSyntax)

EnforcedShorthandSyntax: always (default)

def foobar
  # This is the new shorthand for { foo: foo }
  { foo: }
end

# Debride sees this as unused:
def foo
  :bar
end

I imagine this would be an easy fix

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