From cfade1ec7ee7b5b51f3c1578e3474f9c156f2971 Mon Sep 17 00:00:00 2001 From: Kir Shatrov Date: Thu, 22 Jun 2017 22:59:18 -0400 Subject: Enforce frozen string in Rubocop --- .rubocop.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.rubocop.yml') diff --git a/.rubocop.yml b/.rubocop.yml index 8a0c55d5d4..fc4ee39572 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -97,6 +97,10 @@ Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes +Style/FrozenStringLiteralComment: + Enabled: true + EnforcedStyle: always + # Detect hard tabs, no hard tabs. Layout/Tab: Enabled: true -- cgit v1.2.3 From 87b3e226d65ac1ed371620bfdcd2f950c87cfece Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Sun, 2 Jul 2017 02:15:17 +0930 Subject: Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. --- .rubocop.yml | 4 ---- 1 file changed, 4 deletions(-) (limited to '.rubocop.yml') diff --git a/.rubocop.yml b/.rubocop.yml index fc4ee39572..8a0c55d5d4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -97,10 +97,6 @@ Style/StringLiterals: Enabled: true EnforcedStyle: double_quotes -Style/FrozenStringLiteralComment: - Enabled: true - EnforcedStyle: always - # Detect hard tabs, no hard tabs. Layout/Tab: Enabled: true -- cgit v1.2.3 From 72950568dde05bfe8a69ce4bbf6338fdebf3062f Mon Sep 17 00:00:00 2001 From: Kir Shatrov Date: Sun, 9 Jul 2017 15:06:36 +0300 Subject: Use frozen-string-literal in ActiveSupport --- .rubocop.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.rubocop.yml') diff --git a/.rubocop.yml b/.rubocop.yml index 8a0c55d5d4..9b5044a6fc 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -77,6 +77,12 @@ Layout/SpaceBeforeFirstArg: Style/MethodDefParentheses: Enabled: true +Style/FrozenStringLiteralComment: + Enabled: true + EnforcedStyle: always + Include: + - 'activesupport/**/*' + # Use `foo {}` not `foo{}`. Layout/SpaceBeforeBlockBraces: Enabled: true -- cgit v1.2.3 From 14ece5e4292053e7a40e9bd80c447745f721e217 Mon Sep 17 00:00:00 2001 From: Kir Shatrov Date: Sun, 9 Jul 2017 20:49:52 +0300 Subject: Use frozen-string-literal in ActiveJob --- .rubocop.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.rubocop.yml') diff --git a/.rubocop.yml b/.rubocop.yml index 9b5044a6fc..b8b3eb8eea 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -82,6 +82,7 @@ Style/FrozenStringLiteralComment: EnforcedStyle: always Include: - 'activesupport/**/*' + - 'activejob/**/*' # Use `foo {}` not `foo{}`. Layout/SpaceBeforeBlockBraces: -- cgit v1.2.3