Style/RedundantFetchBlock
: No offence for string literals in file without frozen_string_literal: true
#11803
Labels
Documentation says that string literals in code like
ENV.fetch("RAILS_ENV") { "development" }
should always be rewritten asENV.fetch("RAILS_ENV", "development")
. However I'm not getting any errors for this.This seems to stem from the fact that I have disabled the frozen string literals cop disabled/don't have the magic comment in the file. It would be nice if the documentation would mention this somewhere.
RuboCop version
The text was updated successfully, but these errors were encountered: