Enable the Lint/StringConversionInInterpolation cop

This commit is contained in:
gregoirenovel 2018-12-24 17:43:12 +01:00 committed by Pierre de La Morinerie
parent d473119f9d
commit baf7977786
8 changed files with 12 additions and 12 deletions

View file

@ -46,7 +46,7 @@ namespace :'2018_09_12_fix_templates' do
.each do |instance|
instance.update(body: instance.body.gsub("--libellé procédure--", "--libellé démarche--"))
rake_puts "Body mis-à-jour pour #{klass.to_s}##{instance.id}"
rake_puts "Body mis-à-jour pour #{klass}##{instance.id}"
end
end
end

View file

@ -47,7 +47,7 @@ namespace :after_party do
def remove_footer(template)
matches = template.body.match(FOOTER_REGEXP)
if matches && FOOTER_EXCEPTIONS.none? { |exception| matches[0].include?(exception) }
rake_puts "#{template.model_name.to_s} \##{template.id}: removing footer"
rake_puts "#{template.model_name} \##{template.id}: removing footer"
template.update(body: matches.pre_match)
end
end

View file

@ -17,7 +17,7 @@ namespace :after_party do
.each do |instance|
instance.update(subject: instance.subject.gsub("--libellé procédure--", "--libellé démarche--"))
rake_puts "Subject mis-à-jour pour #{klass.to_s}##{instance.id}"
rake_puts "Subject mis-à-jour pour #{klass}##{instance.id}"
end
end