substancelab / dotfiles

A set of configuration files, inspired by Thoughtbot, customized for our use.
MIT License
0 stars 1 forks source link

Prefer descriptive name for errors #8

Closed koppen closed 5 years ago

koppen commented 5 years ago

Rubocop 0.67 seems to favor calling the exception variable e:

app/exporters/leads_exporter.rb:94:29: C: Naming/RescuedExceptionsVariableName: Use e instead of error.
    rescue StandardError => error
                            ^^^^^

One-letter variables make Ole cry, we can't have that.