From cf2d41dee4c5274b2527e241f80ff0036e7d4b3b Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Mon, 29 Apr 2024 12:58:46 +0200 Subject: [PATCH] shared_rubocop_rails.yml: Add Rails/ActiveSupportAliases See https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsactivesupportaliases for all details. --- shared_rubocop_rails.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared_rubocop_rails.yml b/shared_rubocop_rails.yml index c0645e8..5a6b7f7 100644 --- a/shared_rubocop_rails.yml +++ b/shared_rubocop_rails.yml @@ -3,3 +3,7 @@ # Allow e.g. `list.compact_blank` and disallow `list.reject(&:blank)`. Rails/CompactBlank: Enabled: true + +# Allow e.g. `String#end_with?` and disallow `String#ends_with?`. +Rails/ActiveSupportAliases: + Enabled: true