rubocop-rails 2.19.1 → 2.21.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/config/default.yml +86 -12
  4. data/lib/rubocop/cop/mixin/index_method.rb +2 -2
  5. data/lib/rubocop/cop/rails/action_controller_flash_before_render.rb +1 -1
  6. data/lib/rubocop/cop/rails/action_controller_test_case.rb +2 -2
  7. data/lib/rubocop/cop/rails/assert_not.rb +0 -1
  8. data/lib/rubocop/cop/rails/bulk_change_table.rb +20 -3
  9. data/lib/rubocop/cop/rails/dangerous_column_names.rb +439 -0
  10. data/lib/rubocop/cop/rails/date.rb +12 -3
  11. data/lib/rubocop/cop/rails/duplicate_association.rb +3 -0
  12. data/lib/rubocop/cop/rails/dynamic_find_by.rb +3 -3
  13. data/lib/rubocop/cop/rails/file_path.rb +129 -13
  14. data/lib/rubocop/cop/rails/find_each.rb +1 -1
  15. data/lib/rubocop/cop/rails/freeze_time.rb +1 -1
  16. data/lib/rubocop/cop/rails/http_status.rb +4 -3
  17. data/lib/rubocop/cop/rails/i18n_lazy_lookup.rb +63 -13
  18. data/lib/rubocop/cop/rails/i18n_locale_texts.rb +5 -1
  19. data/lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb +22 -2
  20. data/lib/rubocop/cop/rails/lexically_scoped_action_filter.rb +9 -10
  21. data/lib/rubocop/cop/rails/not_null_column.rb +1 -1
  22. data/lib/rubocop/cop/rails/rake_environment.rb +20 -4
  23. data/lib/rubocop/cop/rails/redundant_active_record_all_method.rb +168 -0
  24. data/lib/rubocop/cop/rails/refute_methods.rb +0 -1
  25. data/lib/rubocop/cop/rails/reversible_migration.rb +1 -1
  26. data/lib/rubocop/cop/rails/root_pathname_methods.rb +38 -4
  27. data/lib/rubocop/cop/rails/save_bang.rb +2 -2
  28. data/lib/rubocop/cop/rails/schema_comment.rb +16 -10
  29. data/lib/rubocop/cop/rails/select_map.rb +78 -0
  30. data/lib/rubocop/cop/rails/squished_sql_heredocs.rb +0 -1
  31. data/lib/rubocop/cop/rails/three_state_boolean_column.rb +2 -4
  32. data/lib/rubocop/cop/rails/time_zone.rb +12 -5
  33. data/lib/rubocop/cop/rails/transaction_exit_statement.rb +35 -9
  34. data/lib/rubocop/cop/rails/unique_validation_without_index.rb +15 -19
  35. data/lib/rubocop/cop/rails/unused_render_content.rb +67 -0
  36. data/lib/rubocop/cop/rails/where_exists.rb +0 -1
  37. data/lib/rubocop/cop/rails_cops.rb +4 -0
  38. data/lib/rubocop/rails/schema_loader/schema.rb +4 -4
  39. data/lib/rubocop/rails/schema_loader.rb +1 -1
  40. data/lib/rubocop/rails/version.rb +1 -1
  41. data/lib/rubocop-rails.rb +8 -0
  42. metadata +8 -4
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.19.1
4
+ version: 2.21.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-04-16 00:00:00.000000000 Z
13
+ date: 2023-09-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -106,6 +106,7 @@ files:
106
106
  - lib/rubocop/cop/rails/compact_blank.rb
107
107
  - lib/rubocop/cop/rails/content_tag.rb
108
108
  - lib/rubocop/cop/rails/create_table_with_timestamps.rb
109
+ - lib/rubocop/cop/rails/dangerous_column_names.rb
109
110
  - lib/rubocop/cop/rails/date.rb
110
111
  - lib/rubocop/cop/rails/default_scope.rb
111
112
  - lib/rubocop/cop/rails/delegate.rb
@@ -161,6 +162,7 @@ files:
161
162
  - lib/rubocop/cop/rails/present.rb
162
163
  - lib/rubocop/cop/rails/rake_environment.rb
163
164
  - lib/rubocop/cop/rails/read_write_attribute.rb
165
+ - lib/rubocop/cop/rails/redundant_active_record_all_method.rb
164
166
  - lib/rubocop/cop/rails/redundant_allow_nil.rb
165
167
  - lib/rubocop/cop/rails/redundant_foreign_key.rb
166
168
  - lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb
@@ -184,6 +186,7 @@ files:
184
186
  - lib/rubocop/cop/rails/save_bang.rb
185
187
  - lib/rubocop/cop/rails/schema_comment.rb
186
188
  - lib/rubocop/cop/rails/scope_args.rb
189
+ - lib/rubocop/cop/rails/select_map.rb
187
190
  - lib/rubocop/cop/rails/short_i18n.rb
188
191
  - lib/rubocop/cop/rails/skips_model_validations.rb
189
192
  - lib/rubocop/cop/rails/squished_sql_heredocs.rb
@@ -200,6 +203,7 @@ files:
200
203
  - lib/rubocop/cop/rails/unique_validation_without_index.rb
201
204
  - lib/rubocop/cop/rails/unknown_env.rb
202
205
  - lib/rubocop/cop/rails/unused_ignored_columns.rb
206
+ - lib/rubocop/cop/rails/unused_render_content.rb
203
207
  - lib/rubocop/cop/rails/validation.rb
204
208
  - lib/rubocop/cop/rails/where_equals.rb
205
209
  - lib/rubocop/cop/rails/where_exists.rb
@@ -219,7 +223,7 @@ metadata:
219
223
  homepage_uri: https://docs.rubocop.org/rubocop-rails/
220
224
  changelog_uri: https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md
221
225
  source_code_uri: https://github.com/rubocop/rubocop-rails/
222
- documentation_uri: https://docs.rubocop.org/rubocop-rails/2.19/
226
+ documentation_uri: https://docs.rubocop.org/rubocop-rails/2.21/
223
227
  bug_tracker_uri: https://github.com/rubocop/rubocop-rails/issues
224
228
  rubygems_mfa_required: 'true'
225
229
  post_install_message:
@@ -230,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
230
234
  requirements:
231
235
  - - ">="
232
236
  - !ruby/object:Gem::Version
233
- version: 2.6.0
237
+ version: 2.7.0
234
238
  required_rubygems_version: !ruby/object:Gem::Requirement
235
239
  requirements:
236
240
  - - ">="