.rubocop.yml in newrelic_rpm-8.16.0 vs .rubocop.yml in newrelic_rpm-9.0.0
- old
+ new
@@ -1079,22 +1079,10 @@
# TODO: Enable when time can be spent on it (no autocorrect)
Performance/MethodObjectAsBlock:
Enabled: false
-# TODO: OLD RUBIES - Requires 2.4
-Performance/RegexpMatch:
- Enabled: false
-
-# TODO: OLD RUBIES - Requires 2.4
-Performance/Sum:
- Enabled: false
-
-# TODO: OLD RUBIES - Requires 2.3
-Performance/UnfreezeString:
- Enabled: false
-
# Disabling for now
Security/Eval:
Enabled: false
# Disabling for now
@@ -1328,15 +1316,10 @@
Enabled: false
Style/ExponentialNotation:
Enabled: false
-# TODO: MAJOR VERSION - Re-enable FetchEnvVar after dropping support for Ruby 2.2
-# Ruby 2.3+ allows for ENV.fetch('KEY') { default }
-Style/FetchEnvVar:
- Enabled: false
-
Style/FloatDivision:
Enabled: false
# Disabling for now
Style/For:
@@ -1737,20 +1720,9 @@
Enabled: false
# EnforcedStyle: implicit
Style/ReturnNil:
Enabled: false
-
-# Can't use, not available in Ruby 2.2
-Style/SafeNavigation:
- Enabled: false
- # ConvertCodeThatCanStartToReturnNil: false
- # AllowedMethods:
- # - present?
- # - blank?
- # - presence
- # - try
- # - try!
Style/Sample:
Enabled: true
Style/SelfAssignment: