rubocop 1.35.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/config/default.yml +11 -0
  4. data/lib/rubocop/cli/command/{auto_genenerate_config.rb → auto_generate_config.rb} +0 -0
  5. data/lib/rubocop/config.rb +1 -1
  6. data/lib/rubocop/cop/generator/require_file_injector.rb +2 -2
  7. data/lib/rubocop/cop/internal_affairs/single_line_comparison.rb +5 -4
  8. data/lib/rubocop/cop/layout/block_alignment.rb +14 -12
  9. data/lib/rubocop/cop/layout/end_of_line.rb +4 -4
  10. data/lib/rubocop/cop/layout/first_array_element_indentation.rb +2 -2
  11. data/lib/rubocop/cop/layout/first_hash_element_indentation.rb +2 -2
  12. data/lib/rubocop/cop/layout/indentation_width.rb +3 -1
  13. data/lib/rubocop/cop/layout/redundant_line_break.rb +1 -1
  14. data/lib/rubocop/cop/layout/space_inside_block_braces.rb +25 -9
  15. data/lib/rubocop/cop/lint/ambiguous_block_association.rb +1 -1
  16. data/lib/rubocop/cop/lint/deprecated_class_methods.rb +4 -4
  17. data/lib/rubocop/cop/lint/duplicate_require.rb +1 -1
  18. data/lib/rubocop/cop/lint/empty_conditional_body.rb +31 -1
  19. data/lib/rubocop/cop/lint/literal_in_interpolation.rb +4 -0
  20. data/lib/rubocop/cop/lint/non_atomic_file_operation.rb +6 -6
  21. data/lib/rubocop/cop/lint/redundant_safe_navigation.rb +9 -3
  22. data/lib/rubocop/cop/lint/shadowed_exception.rb +1 -1
  23. data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +14 -2
  24. data/lib/rubocop/cop/lint/unreachable_loop.rb +1 -1
  25. data/lib/rubocop/cop/lint/useless_access_modifier.rb +2 -2
  26. data/lib/rubocop/cop/lint/useless_ruby2_keywords.rb +1 -1
  27. data/lib/rubocop/cop/mixin/allowed_methods.rb +10 -5
  28. data/lib/rubocop/cop/mixin/allowed_pattern.rb +13 -5
  29. data/lib/rubocop/cop/mixin/check_line_breakable.rb +1 -1
  30. data/lib/rubocop/cop/mixin/hash_transform_method.rb +9 -5
  31. data/lib/rubocop/cop/mixin/multiline_element_indentation.rb +1 -1
  32. data/lib/rubocop/cop/naming/constant_name.rb +2 -2
  33. data/lib/rubocop/cop/style/access_modifier_declarations.rb +77 -1
  34. data/lib/rubocop/cop/style/case_equality.rb +40 -10
  35. data/lib/rubocop/cop/style/each_for_simple_loop.rb +40 -5
  36. data/lib/rubocop/cop/style/guard_clause.rb +27 -16
  37. data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +2 -2
  38. data/lib/rubocop/cop/style/multiline_in_pattern_then.rb +1 -1
  39. data/lib/rubocop/cop/style/next.rb +1 -5
  40. data/lib/rubocop/cop/style/perl_backrefs.rb +22 -1
  41. data/lib/rubocop/cop/style/redundant_parentheses.rb +4 -0
  42. data/lib/rubocop/cop/style/safe_navigation.rb +4 -2
  43. data/lib/rubocop/cop/style/sole_nested_conditional.rb +0 -2
  44. data/lib/rubocop/cop/style/symbol_array.rb +1 -1
  45. data/lib/rubocop/cop/style/symbol_proc.rb +5 -4
  46. data/lib/rubocop/cop/style/word_array.rb +1 -1
  47. data/lib/rubocop/cop/util.rb +1 -1
  48. data/lib/rubocop/feature_loader.rb +3 -1
  49. data/lib/rubocop/formatter/html_formatter.rb +2 -2
  50. data/lib/rubocop/runner.rb +4 -0
  51. data/lib/rubocop/server/cache.rb +9 -8
  52. data/lib/rubocop/version.rb +3 -2
  53. data/lib/rubocop.rb +1 -1
  54. metadata +5 -5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.35.0
4
+ version: 1.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-08-12 00:00:00.000000000 Z
13
+ date: 2022-09-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -212,7 +212,7 @@ files:
212
212
  - lib/rubocop/cached_data.rb
213
213
  - lib/rubocop/cli.rb
214
214
  - lib/rubocop/cli/command.rb
215
- - lib/rubocop/cli/command/auto_genenerate_config.rb
215
+ - lib/rubocop/cli/command/auto_generate_config.rb
216
216
  - lib/rubocop/cli/command/base.rb
217
217
  - lib/rubocop/cli/command/execute_runner.rb
218
218
  - lib/rubocop/cli/command/init_dotfile.rb
@@ -977,7 +977,7 @@ metadata:
977
977
  homepage_uri: https://rubocop.org/
978
978
  changelog_uri: https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md
979
979
  source_code_uri: https://github.com/rubocop/rubocop/
980
- documentation_uri: https://docs.rubocop.org/rubocop/1.35/
980
+ documentation_uri: https://docs.rubocop.org/rubocop/1.36/
981
981
  bug_tracker_uri: https://github.com/rubocop/rubocop/issues
982
982
  rubygems_mfa_required: 'true'
983
983
  post_install_message:
@@ -995,7 +995,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
995
995
  - !ruby/object:Gem::Version
996
996
  version: '0'
997
997
  requirements: []
998
- rubygems_version: 3.2.22
998
+ rubygems_version: 3.1.2
999
999
  signing_key:
1000
1000
  specification_version: 4
1001
1001
  summary: Automatic Ruby code style checking tool.