lib/rubocop/cop/base.rb in rubocop-1.65.1 vs lib/rubocop/cop/base.rb in rubocop-1.66.0
- old
+ new
@@ -271,9 +271,13 @@
def active_support_extensions_enabled?
@config.active_support_extensions_enabled?
end
+ def string_literals_frozen_by_default?
+ @config.string_literals_frozen_by_default?
+ end
+
def relevant_file?(file)
return false unless target_satisfies_all_gem_version_requirements?
return true unless @config.clusivity_config_for_badge?(self.class.badge)
file == RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME ||