1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/lib/action_mailer
Yasuo Honda aa3dcabd87 Add Style/RedundantFreeze to remove redudant .freeze
Since Rails 6.0 will support Ruby 2.4.1 or higher
`# frozen_string_literal: true` magic comment is enough to make string object frozen.
This magic comment is enabled by `Style/FrozenStringLiteralComment` cop.

* Exclude these files not to auto correct false positive `Regexp#freeze`
 - 'actionpack/lib/action_dispatch/journey/router/utils.rb'
 - 'activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb'

It has been fixed by https://github.com/rubocop-hq/rubocop/pull/6333
Once the newer version of RuboCop released and available at Code Climate these exclude entries should be removed.

* Replace `String#freeze` with `String#-@` manually if explicit frozen string objects are required

 - 'actionpack/test/controller/test_case_test.rb'
 - 'activemodel/test/cases/type/string_test.rb'
 - 'activesupport/lib/active_support/core_ext/string/strip.rb'
 - 'activesupport/test/core_ext/string_ext_test.rb'
 - 'railties/test/generators/actions_test.rb'
2018-09-29 07:18:44 +00:00
..
base.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
collector.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
delivery_job.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
delivery_methods.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
gem_version.rb Start Rails 6.0 development!!! 2018-01-30 18:51:17 -05:00
inline_preview_interceptor.rb Turn on performance based cops 2018-07-23 15:37:06 -07:00
log_subscriber.rb Add perform_deliveries to a payload of deliver.action_mailer notification. 2018-09-09 20:17:36 +09:00
mail_helper.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
message_delivery.rb Move the options for deliver_later up near to the example [ci skip] 2018-01-04 21:51:30 +05:30
parameterized.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
preview.rb ActionMailer::Base can unregister observer(s) and interceptor(s). (#32207) 2018-05-30 17:36:24 -04:00
railtie.rb Include test helpers when ActionDispatch::IntegrationTest is loaded 2018-09-12 16:58:14 -05:00
rescuable.rb Use tt in doc for action_mailer [ci skip] 2017-08-26 08:40:18 +09:00
test_case.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
test_helper.rb Fix docs of assert_no_emails [ci skip] 2018-06-29 16:02:52 +03:00
version.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00