Proposal: change Style/Alias to prefer_alias_method (or disable) #185
Labels
approved 👍
good first issue ⭐️
Good for newcomers
rule change 👩⚖️
Suggest a style guide rule change
Hi @searls and fellow standardrb-ers,
I was porting a gem to standardrb today when I noticed it auto-corrected an
alias_method
toalias
.I note that the following rules are currently in place for
Style/Alias
:Looking at the git blame for the
base.yml
file, it seems like this rule was never specifically tweaked, it was just brought in with the wholesale import of the original RuboCop defaults.I would like to propose that we (a) change the enforced style to
prefer_alias_method
, or (b) disable the rule entirely.As I was about to write my reasoning for this proposal, I actually found this recently opened issue on the Ruby Style Guide that sums up my thinking very well, so I'll point you to this first: rubocop/ruby-style-guide#821
Happy to discuss further, but I thought it'd be simplest just to point to that issue and gauge your feelings first.
Cheers!
The text was updated successfully, but these errors were encountered: