Skip to content

style guide doesn't follow Style/RescueStandardError #719

Open
@Fryguy

Description

@Fryguy

This issue has 2 parts

  1. Style/RescueStandardError isn't represented at all in the style guide
  2. In particular, https://github.com/bbatsov/ruby-style-guide/tree/2c0b4713794ea07a70ca4e1dee81405350fa7544#no-blind-rescues shows that rescue => e is "good", but this line would fail against Style/RescueStandardError 's default of "explicit".

Since this cop has 2 choices (implicit and explicit), I'm not sure how to make a PR for this change to show that it's "bad" with defaults, but "good" with changes (not even sure the guide cares about those choices)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions