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.yml')
-rw-r--r--.rubocop.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 5bd31ccf329..f4377757696 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -338,6 +338,19 @@ Style/OpMethod:
Style/ParenthesesAroundCondition:
Enabled: true
+Style/PercentLiteralDelimiters:
+ Enabled: true
+ PreferredDelimiters:
+ '%': '()'
+ '%i': '[]'
+ '%q': '()'
+ '%Q': '()'
+ '%r': '{}'
+ '%s': '()'
+ '%w': '[]'
+ '%W': '[]'
+ '%x': '()'
+
# Checks for parentheses that seem not to serve any purpose.
Style/RedundantParentheses:
Enabled: true