Skip to content

Style/ArgumentsForwarding seems a bit heavy-handed #612

@searls

Description

@searls

Just updated standard to 1.34.0 and saw this failure:

  def set_time_zone(&block)
    Time.use_zone(current_user.time_zone, &block)
  end

Which auto-fixes to this:

  def set_time_zone(&)
    Time.use_zone(current_user.time_zone, &)
  end

I was kinda annoyed by this, and maybe even more annoyed when I realized that only [blk, block, proc] trip the rule.

Am I just being an old crank because I have 20 years of muscle memory writing &blk?

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