From 5cde9794e477f7ab49fe23493ba873ab4e205d5f Mon Sep 17 00:00:00 2001 From: Sam Bostock Date: Thu, 9 Nov 2023 15:44:36 -0500 Subject: [PATCH 1/2] Enforce `frozen_string_literal: true` The default `EnforcedStyle` is `always`, which enforces that all files have a `# frozen_string_literal` comment, but doesn't care if it's `true` or `false`. `always_true` enforces `true`, which we want. Any existing files can simply be added to a TODO list or disable the cop. --- rubocop.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/rubocop.yml b/rubocop.yml index 4ed86f65..4e1c6270 100644 --- a/rubocop.yml +++ b/rubocop.yml @@ -548,6 +548,7 @@ Style/FormatStringToken: Style/FrozenStringLiteralComment: SafeAutoCorrect: true + EnforcedStyle: always_true Details: 'Add `# frozen_string_literal: true` to the top of the file. Frozen string literals will become the default in a future Ruby version, and we want to make sure we''re ready.' From e400d35f556969803d9196d128fbe7a4241704ea Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 9 Nov 2023 20:45:21 +0000 Subject: [PATCH 2/2] Dump full RuboCop config This automated commit dumps the contents of the full RuboCop config. [dependabot skip] --- test/fixtures/full_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fixtures/full_config.yml b/test/fixtures/full_config.yml index 098cdaf0..d51dec6f 100644 --- a/test/fixtures/full_config.yml +++ b/test/fixtures/full_config.yml @@ -2894,7 +2894,7 @@ Style/FrozenStringLiteralComment: Enabled: true VersionAdded: '0.36' VersionChanged: '0.79' - EnforcedStyle: always + EnforcedStyle: always_true SupportedStyles: - always - always_true