Commit 9de7eb57 authored by Robert Speicher's avatar Robert Speicher

Merge branch '27884-disable-the-safenavigation-cop' into 'master'

Resolve "Consider enforcing the use of the new Ruby safe navigation operator (aka `&.`)"

Closes #27884

See merge request gitlab-org/gitlab-ce!21140
parents e733c446 e874fdba
...@@ -31,6 +31,10 @@ Style/MutableConstant: ...@@ -31,6 +31,10 @@ Style/MutableConstant:
- 'ee/db/post_migrate/**/*' - 'ee/db/post_migrate/**/*'
- 'ee/db/geo/migrate/**/*' - 'ee/db/geo/migrate/**/*'
# TODO: Move this to gitlab-styles
Style/SafeNavigation:
Enabled: false
Naming/FileName: Naming/FileName:
ExpectMatchingDefinition: true ExpectMatchingDefinition: true
Exclude: Exclude:
......
...@@ -706,12 +706,6 @@ Style/RescueModifier: ...@@ -706,12 +706,6 @@ Style/RescueModifier:
Style/RescueStandardError: Style/RescueStandardError:
Enabled: false Enabled: false
# Offense count: 92
# Cop supports --auto-correct.
# Configuration parameters: ConvertCodeThatCanStartToReturnNil.
Style/SafeNavigation:
Enabled: false
# Offense count: 8 # Offense count: 8
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/SelfAssignment: Style/SelfAssignment:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment