1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/lib/action_view/helpers
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
..
tags Enable Start/EndWith and RegexpMatch cops 2018-07-28 17:37:17 -04:00
active_model_helper.rb Fix field_error_proc wrap form select optgroup and divider option tag 2017-11-09 17:37:06 +01:00
asset_tag_helper.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
asset_url_helper.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
atom_feed_helper.rb Fix broken doc layout for action_view [ci skip] 2017-08-27 09:12:19 +09:00
cache_helper.rb Move digest path calculation out of loop 2018-09-11 16:52:44 -05:00
capture_helper.rb [ci skip] Doc ActionView::OutputBuffer 2018-09-06 15:28:45 -05:00
controller_helper.rb Fix broken doc layout for action_view [ci skip] 2017-08-27 09:12:19 +09:00
csp_helper.rb Add support for automatic nonce generation for Rails UJS 2018-02-19 15:59:34 +00:00
csrf_helper.rb Fix broken doc layout for action_view [ci skip] 2017-08-27 09:12:19 +09:00
date_helper.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
debug_helper.rb We should call methods with .method_name not ::method_name. 2018-02-22 00:54:40 +01:00
form_helper.rb Add :namespace option to the api docs of form_with [ci skip] 2018-08-27 15:40:09 +03:00
form_options_helper.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
form_tag_helper.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
javascript_helper.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
number_helper.rb Add missing documentation options to number_to_currency [ci skip] 2018-07-11 20:59:51 -03:00
output_safety_helper.rb Use frozen string literal in actionview/ 2017-07-24 11:53:43 +03:00
rendering_helper.rb Remove reference to old :text rendering option 2018-05-11 14:19:29 -04:00
sanitize_helper.rb Permit list usage cleanup and clearer documentation 2018-08-27 09:51:46 -04:00
tag_helper.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
tags.rb Fix broken doc layout for action_view [ci skip] 2017-08-27 09:12:19 +09:00
text_helper.rb Enable Style/ParenthesesAroundCondition cop 2018-08-19 08:16:21 +09:00
translation_helper.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
url_helper.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00