From 7275fc9aa2ed569521248ebc82f97a6cf3cd5f8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 10 Oct 2020 20:48:07 +0200 Subject: [PATCH] Add and apply RedundantFileExtensionInRequire rule This rule was added in Rubocop 0.88.0. --- .rubocop.yml | 3 +++ config/application.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index f567ec525..a4f10b1dd 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -410,6 +410,9 @@ Style/PercentLiteralDelimiters: Style/Proc: Enabled: true +Style/RedundantFileExtensionInRequire: + Enabled: true + Style/RedundantFreeze: Enabled: true diff --git a/config/application.rb b/config/application.rb index 935dffa93..e151e7cbd 100644 --- a/config/application.rb +++ b/config/application.rb @@ -129,4 +129,4 @@ class Rails::Engine end end -require "./config/application_custom.rb" +require "./config/application_custom"