config/default.yml in rubocop-1.65.1 vs config/default.yml in rubocop-1.66.0
- old
+ new
@@ -80,10 +80,12 @@
# When specifying style guide URLs, any paths and/or fragments will be
# evaluated relative to the base URL.
StyleGuideBaseURL: https://rubystyle.guide
# Documentation URLs will be constructed using the base URL.
DocumentationBaseURL: https://docs.rubocop.org/rubocop
+ # Documentation URLs will end with this extension.
+ DocumentationExtension: .html
# Extra details are not displayed in offense messages by default. Change
# behavior by overriding ExtraDetails, or by giving the
# `-E/--extra-details` option.
ExtraDetails: false
# Additional cops that do not reference a style guide rule may be enabled by
@@ -164,10 +166,15 @@
rubocop-capybara: [capybara]
rubocop-factory_bot: [factory_bot, factory_bot_rails]
rubocop-rspec_rails: [rspec-rails]
# Enable/Disable checking the methods extended by Active Support.
ActiveSupportExtensionsEnabled: false
+ # Future version of Ruby will freeze string literals by default.
+ # This allows to opt in early, for example when enabled through RUBYOPT.
+ # For now this will behave as if set to false but in future ruby versions
+ # (likely 4.0) it will be true by default.
+ StringLiteralsFrozenByDefault: ~
#################### Bundler ###############################
Bundler/DuplicatedGem:
Description: 'Checks for duplicate gem entries in Gemfile.'
@@ -2534,12 +2541,11 @@
Description: 'Checks for useless assignment to a local variable.'
StyleGuide: '#underscore-unused-vars'
Enabled: true
AutoCorrect: contextual
VersionAdded: '0.11'
- VersionChanged: '1.61'
- SafeAutoCorrect: false
+ VersionChanged: '1.66'
Lint/UselessElseWithoutRescue:
Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
Enabled: true
VersionAdded: '0.17'
@@ -2551,10 +2557,15 @@
AutoCorrect: contextual
VersionAdded: '0.90'
VersionChanged: '1.61'
Safe: false
+Lint/UselessNumericOperation:
+ Description: 'Checks for useless numeric operations.'
+ Enabled: pending
+ VersionAdded: '1.66'
+
Lint/UselessRescue:
Description: 'Checks for useless `rescue`s.'
Enabled: pending
VersionAdded: '1.43'
@@ -5048,9 +5059,14 @@
Description: 'Checks for strings that are just an interpolated expression.'
Enabled: true
SafeAutoCorrect: false
VersionAdded: '0.76'
VersionChanged: '1.30'
+
+Style/RedundantInterpolationUnfreeze:
+ Description: 'Checks for redundant unfreezing of interpolated strings.'
+ Enabled: pending
+ VersionAdded: '1.66'
Style/RedundantLineContinuation:
Description: 'Check for redundant line continuation.'
Enabled: pending
VersionAdded: '1.49'