Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/rubocop-ruby32.yml')
-rw-r--r--rubocop/rubocop-ruby32.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/rubocop/rubocop-ruby32.yml b/rubocop/rubocop-ruby32.yml
new file mode 100644
index 00000000000..0d0e8a46c60
--- /dev/null
+++ b/rubocop/rubocop-ruby32.yml
@@ -0,0 +1,15 @@
+# RuboCop configuration adjustments during the transition time from Ruby 3.1 to
+# Ruby 3.2.
+#
+# After the transition has been completed:
+# * Enable all disabled cops and resolve the offenses.
+# * Move all configuration which enabled or tweaked cops to .rubocop.yml.
+# * Remove all remaining configuration.
+
+# Short-hand Hash syntax does not work prior 3.1.
+Style/HashSyntax:
+ EnforcedShorthandSyntax: never
+
+# With 3.2+ `require 'set'` is no longer needed as it's always loaded.
+Lint/RedundantRequireStatement:
+ Enabled: false