rubocop 1.20.0 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/config/default.yml +19 -6
  4. data/lib/rubocop/cop/base.rb +2 -2
  5. data/lib/rubocop/cop/bundler/insecure_protocol_source.rb +12 -11
  6. data/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb +2 -2
  7. data/lib/rubocop/cop/correctors/line_break_corrector.rb +1 -1
  8. data/lib/rubocop/cop/layout/argument_alignment.rb +1 -1
  9. data/lib/rubocop/cop/layout/class_structure.rb +2 -1
  10. data/lib/rubocop/cop/layout/end_alignment.rb +1 -1
  11. data/lib/rubocop/cop/layout/leading_comment_space.rb +1 -1
  12. data/lib/rubocop/cop/layout/line_length.rb +1 -1
  13. data/lib/rubocop/cop/layout/multiline_block_layout.rb +1 -1
  14. data/lib/rubocop/cop/layout/single_line_block_chain.rb +15 -4
  15. data/lib/rubocop/cop/layout/space_after_not.rb +1 -0
  16. data/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb +2 -1
  17. data/lib/rubocop/cop/layout/space_around_keyword.rb +2 -2
  18. data/lib/rubocop/cop/layout/space_before_brackets.rb +1 -0
  19. data/lib/rubocop/cop/layout/space_inside_reference_brackets.rb +1 -1
  20. data/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb +107 -0
  21. data/lib/rubocop/cop/lint/ambiguous_range.rb +1 -1
  22. data/lib/rubocop/cop/lint/debugger.rb +0 -2
  23. data/lib/rubocop/cop/lint/empty_in_pattern.rb +1 -1
  24. data/lib/rubocop/cop/lint/erb_new_arguments.rb +1 -1
  25. data/lib/rubocop/cop/lint/float_out_of_range.rb +1 -1
  26. data/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb +67 -0
  27. data/lib/rubocop/cop/lint/number_conversion.rb +7 -1
  28. data/lib/rubocop/cop/lint/unused_method_argument.rb +2 -3
  29. data/lib/rubocop/cop/lint/useless_times.rb +1 -1
  30. data/lib/rubocop/cop/metrics/perceived_complexity.rb +1 -1
  31. data/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb +1 -1
  32. data/lib/rubocop/cop/metrics/utils/code_length_calculator.rb +1 -1
  33. data/lib/rubocop/cop/mixin/code_length.rb +1 -1
  34. data/lib/rubocop/cop/mixin/frozen_string_literal.rb +11 -6
  35. data/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +2 -2
  36. data/lib/rubocop/cop/mixin/preceding_following_alignment.rb +9 -1
  37. data/lib/rubocop/cop/naming/ascii_identifiers.rb +0 -3
  38. data/lib/rubocop/cop/naming/constant_name.rb +1 -1
  39. data/lib/rubocop/cop/naming/inclusive_language.rb +9 -9
  40. data/lib/rubocop/cop/style/accessor_grouping.rb +2 -2
  41. data/lib/rubocop/cop/style/and_or.rb +4 -0
  42. data/lib/rubocop/cop/style/ascii_comments.rb +0 -3
  43. data/lib/rubocop/cop/style/case_equality.rb +6 -9
  44. data/lib/rubocop/cop/style/collection_methods.rb +2 -1
  45. data/lib/rubocop/cop/style/document_dynamic_eval_definition.rb +1 -1
  46. data/lib/rubocop/cop/style/documentation.rb +23 -8
  47. data/lib/rubocop/cop/style/empty_method.rb +1 -1
  48. data/lib/rubocop/cop/style/explicit_block_argument.rb +21 -11
  49. data/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb +3 -2
  50. data/lib/rubocop/cop/style/lambda_call.rb +1 -1
  51. data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +6 -6
  52. data/lib/rubocop/cop/style/mutable_constant.rb +1 -1
  53. data/lib/rubocop/cop/style/negated_if.rb +1 -1
  54. data/lib/rubocop/cop/style/negated_unless.rb +1 -1
  55. data/lib/rubocop/cop/style/non_nil_check.rb +2 -2
  56. data/lib/rubocop/cop/style/not.rb +2 -2
  57. data/lib/rubocop/cop/style/parallel_assignment.rb +1 -1
  58. data/lib/rubocop/cop/style/percent_q_literals.rb +2 -2
  59. data/lib/rubocop/cop/style/raise_args.rb +1 -1
  60. data/lib/rubocop/cop/style/redundant_condition.rb +2 -3
  61. data/lib/rubocop/cop/style/redundant_interpolation.rb +1 -1
  62. data/lib/rubocop/cop/style/redundant_percent_q.rb +2 -3
  63. data/lib/rubocop/cop/style/redundant_self_assignment_branch.rb +1 -1
  64. data/lib/rubocop/cop/style/redundant_sort.rb +17 -2
  65. data/lib/rubocop/cop/style/regexp_literal.rb +3 -3
  66. data/lib/rubocop/cop/style/return_nil.rb +2 -1
  67. data/lib/rubocop/cop/style/static_class.rb +1 -2
  68. data/lib/rubocop/cop/style/string_concatenation.rb +1 -1
  69. data/lib/rubocop/cop/style/trivial_accessors.rb +1 -1
  70. data/lib/rubocop/cop/style/yoda_condition.rb +4 -7
  71. data/lib/rubocop/result_cache.rb +1 -1
  72. data/lib/rubocop/runner.rb +1 -2
  73. data/lib/rubocop/version.rb +1 -1
  74. data/lib/rubocop.rb +3 -1
  75. metadata +5 -3
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  # This module holds the RuboCop version information.
5
5
  module Version
6
- STRING = '1.20.0'
6
+ STRING = '1.21.0'
7
7
 
8
8
  MSG = '%<version>s (using Parser %<parser_version>s, '\
9
9
  'rubocop-ast %<rubocop_ast_version>s, ' \
data/lib/rubocop.rb CHANGED
@@ -263,6 +263,7 @@ require_relative 'rubocop/cop/layout/trailing_whitespace'
263
263
  require_relative 'rubocop/cop/lint/ambiguous_assignment'
264
264
  require_relative 'rubocop/cop/lint/ambiguous_block_association'
265
265
  require_relative 'rubocop/cop/lint/ambiguous_operator'
266
+ require_relative 'rubocop/cop/lint/ambiguous_operator_precedence'
266
267
  require_relative 'rubocop/cop/lint/ambiguous_range'
267
268
  require_relative 'rubocop/cop/lint/ambiguous_regexp_literal'
268
269
  require_relative 'rubocop/cop/lint/assignment_in_condition'
@@ -306,8 +307,9 @@ require_relative 'rubocop/cop/lint/hash_compare_by_identity'
306
307
  require_relative 'rubocop/cop/lint/heredoc_method_call_position'
307
308
  require_relative 'rubocop/cop/lint/identity_comparison'
308
309
  require_relative 'rubocop/cop/lint/implicit_string_concatenation'
309
- require_relative 'rubocop/cop/lint/inherit_exception'
310
+ require_relative 'rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler'
310
311
  require_relative 'rubocop/cop/lint/ineffective_access_modifier'
312
+ require_relative 'rubocop/cop/lint/inherit_exception'
311
313
  require_relative 'rubocop/cop/lint/interpolation_check'
312
314
  require_relative 'rubocop/cop/lint/lambda_without_literal_block'
313
315
  require_relative 'rubocop/cop/lint/literal_as_condition'
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.20.0
4
+ version: 1.21.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: 2021-08-26 00:00:00.000000000 Z
13
+ date: 2021-09-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: parallel
@@ -373,6 +373,7 @@ files:
373
373
  - lib/rubocop/cop/lint/ambiguous_assignment.rb
374
374
  - lib/rubocop/cop/lint/ambiguous_block_association.rb
375
375
  - lib/rubocop/cop/lint/ambiguous_operator.rb
376
+ - lib/rubocop/cop/lint/ambiguous_operator_precedence.rb
376
377
  - lib/rubocop/cop/lint/ambiguous_range.rb
377
378
  - lib/rubocop/cop/lint/ambiguous_regexp_literal.rb
378
379
  - lib/rubocop/cop/lint/assignment_in_condition.rb
@@ -416,6 +417,7 @@ files:
416
417
  - lib/rubocop/cop/lint/heredoc_method_call_position.rb
417
418
  - lib/rubocop/cop/lint/identity_comparison.rb
418
419
  - lib/rubocop/cop/lint/implicit_string_concatenation.rb
420
+ - lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb
419
421
  - lib/rubocop/cop/lint/ineffective_access_modifier.rb
420
422
  - lib/rubocop/cop/lint/inherit_exception.rb
421
423
  - lib/rubocop/cop/lint/interpolation_check.rb
@@ -890,7 +892,7 @@ metadata:
890
892
  homepage_uri: https://rubocop.org/
891
893
  changelog_uri: https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md
892
894
  source_code_uri: https://github.com/rubocop/rubocop/
893
- documentation_uri: https://docs.rubocop.org/rubocop/1.20/
895
+ documentation_uri: https://docs.rubocop.org/rubocop/1.21/
894
896
  bug_tracker_uri: https://github.com/rubocop/rubocop/issues
895
897
  post_install_message:
896
898
  rdoc_options: []