summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-05-23 19:27:25 +0000
committerRobert Speicher <robert@gitlab.com>2016-05-23 19:27:25 +0000
commit206e8344b882c985ac920c1dc9f2fba0045aafe8 (patch)
tree2ede6fd90cde096d02d08d9ef27495bca7b1391b /.rubocop.yml
parent165834b37326267ba78476adda52c5b92f369f38 (diff)
parent6898087b97234516b1d31ac731653bebbd9a171e (diff)
downloadgitlab-ce-206e8344b882c985ac920c1dc9f2fba0045aafe8.tar.gz
Merge branch 'rs-update-rubocop' into 'master'
Update rubocop to 0.40.0 See merge request !4258
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 2997bf5d14b..5143736658b 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -333,6 +333,12 @@ Style/MethodName:
Style/ModuleFunction:
Enabled: false
+# Checks that the closing brace in an array literal is either on the same line
+# as the last array element, or a new line.
+Style/MultilineArrayBraceLayout:
+ Enabled: false
+ EnforcedStyle: symmetrical
+
# Avoid multi-line chains of blocks.
Style/MultilineBlockChain:
Enabled: false
@@ -341,10 +347,22 @@ Style/MultilineBlockChain:
Style/MultilineBlockLayout:
Enabled: true
+# Checks that the closing brace in a hash literal is either on the same line as
+# the last hash element, or a new line.
+Style/MultilineHashBraceLayout:
+ Enabled: false
+ EnforcedStyle: symmetrical
+
# Do not use then for multi-line if/unless.
Style/MultilineIfThen:
Enabled: false
+# Checks that the closing brace in a method call is either on the same line as
+# the last method argument, or a new line.
+Style/MultilineMethodCallBraceLayout:
+ Enabled: false
+ EnforcedStyle: symmetrical
+
# Checks indentation of method calls with the dot operator that span more than
# one line.
Style/MultilineMethodCallIndentation: