summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-08-10 17:17:08 +0200
committerRémy Coutable <remy@rymai.me>2018-08-10 17:17:08 +0200
commite874fdbacc8f177603c5300c2abf3c16d76d38d1 (patch)
treeb6f3aa8f95f657432795691e45aa87dcc85c9989
parent9964b678110e97c492a8b2f77ab899252c05f10e (diff)
downloadgitlab-ce-e874fdbacc8f177603c5300c2abf3c16d76d38d1.tar.gz
Explicitly disable the Style/SafeNavigation cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--.rubocop.yml4
-rw-r--r--.rubocop_todo.yml6
2 files changed, 4 insertions, 6 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index c8b1ce327e2..a586190319b 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -31,6 +31,10 @@ Style/MutableConstant:
- 'ee/db/post_migrate/**/*'
- 'ee/db/geo/migrate/**/*'
+# TODO: Move this to gitlab-styles
+Style/SafeNavigation:
+ Enabled: false
+
Naming/FileName:
ExpectMatchingDefinition: true
Exclude:
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 8a1ca6747a8..54e3b8217d8 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -706,12 +706,6 @@ Style/RescueModifier:
Style/RescueStandardError:
Enabled: false
-# Offense count: 92
-# Cop supports --auto-correct.
-# Configuration parameters: ConvertCodeThatCanStartToReturnNil.
-Style/SafeNavigation:
- Enabled: false
-
# Offense count: 8
# Cop supports --auto-correct.
Style/SelfAssignment: