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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-05 18:09:29 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-05 18:09:29 +0300
commit3e6c042eb05e09d88c2bd988cb9ef5f9eba67794 (patch)
tree81d43b53312b06796dac6e00ef45b22255958dea /rubocop
parentc8d44b1e3bd9dd04e5a3724fafd702932d1752be (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-rw-r--r--rubocop/rubocop-ruby31.yml1
-rw-r--r--rubocop/rubocop-ruby32.yml15
2 files changed, 16 insertions, 0 deletions
diff --git a/rubocop/rubocop-ruby31.yml b/rubocop/rubocop-ruby31.yml
index 109c7ca2dfe..712c5a8f447 100644
--- a/rubocop/rubocop-ruby31.yml
+++ b/rubocop/rubocop-ruby31.yml
@@ -2,6 +2,7 @@
# Ruby 3.1.
#
# 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.
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