rubocop 1.75.8 → 1.76.1
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.
- checksums.yaml +4 -4
- data/README.md +19 -13
- data/config/default.yml +50 -7
- data/config/obsoletion.yml +6 -3
- data/lib/rubocop/cop/bundler/ordered_gems.rb +1 -1
- data/lib/rubocop/cop/gemspec/duplicated_assignment.rb +2 -2
- data/lib/rubocop/cop/gemspec/ordered_dependencies.rb +1 -1
- data/lib/rubocop/cop/internal_affairs/node_pattern_groups.rb +1 -0
- data/lib/rubocop/cop/lint/empty_interpolation.rb +3 -1
- data/lib/rubocop/cop/lint/identity_comparison.rb +19 -15
- data/lib/rubocop/cop/lint/literal_as_condition.rb +16 -24
- data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +5 -0
- data/lib/rubocop/cop/lint/useless_default_value_argument.rb +87 -0
- data/lib/rubocop/cop/lint/useless_or.rb +98 -0
- data/lib/rubocop/cop/mixin/ordered_gem_node.rb +1 -1
- data/lib/rubocop/cop/naming/predicate_method.rb +216 -0
- data/lib/rubocop/cop/naming/{predicate_name.rb → predicate_prefix.rb} +2 -2
- data/lib/rubocop/cop/style/empty_string_inside_interpolation.rb +100 -0
- data/lib/rubocop/cop/style/if_unless_modifier.rb +2 -4
- data/lib/rubocop/cop/style/it_block_parameter.rb +33 -14
- data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +1 -1
- data/lib/rubocop/cop/style/redundant_array_flatten.rb +50 -0
- data/lib/rubocop/cop/style/redundant_parentheses.rb +17 -5
- data/lib/rubocop/cop/style/safe_navigation.rb +24 -11
- data/lib/rubocop/rspec/expect_offense.rb +9 -3
- data/lib/rubocop/version.rb +1 -1
- data/lib/rubocop.rb +6 -1
- metadata +12 -7
data/lib/rubocop.rb
CHANGED
@@ -430,10 +430,12 @@ require_relative 'rubocop/cop/lint/uri_regexp'
|
|
430
430
|
require_relative 'rubocop/cop/lint/useless_access_modifier'
|
431
431
|
require_relative 'rubocop/cop/lint/useless_assignment'
|
432
432
|
require_relative 'rubocop/cop/lint/useless_constant_scoping'
|
433
|
+
require_relative 'rubocop/cop/lint/useless_default_value_argument'
|
433
434
|
require_relative 'rubocop/cop/lint/useless_defined'
|
434
435
|
require_relative 'rubocop/cop/lint/useless_else_without_rescue'
|
435
436
|
require_relative 'rubocop/cop/lint/useless_method_definition'
|
436
437
|
require_relative 'rubocop/cop/lint/useless_numeric_operation'
|
438
|
+
require_relative 'rubocop/cop/lint/useless_or'
|
437
439
|
require_relative 'rubocop/cop/lint/useless_rescue'
|
438
440
|
require_relative 'rubocop/cop/lint/useless_ruby2_keywords'
|
439
441
|
require_relative 'rubocop/cop/lint/useless_setter_call'
|
@@ -469,7 +471,8 @@ require_relative 'rubocop/cop/naming/memoized_instance_variable_name'
|
|
469
471
|
require_relative 'rubocop/cop/naming/method_name'
|
470
472
|
require_relative 'rubocop/cop/naming/method_parameter_name'
|
471
473
|
require_relative 'rubocop/cop/naming/binary_operator_parameter_name'
|
472
|
-
require_relative 'rubocop/cop/naming/
|
474
|
+
require_relative 'rubocop/cop/naming/predicate_method'
|
475
|
+
require_relative 'rubocop/cop/naming/predicate_prefix'
|
473
476
|
require_relative 'rubocop/cop/naming/rescued_exceptions_variable_name'
|
474
477
|
require_relative 'rubocop/cop/naming/variable_name'
|
475
478
|
require_relative 'rubocop/cop/naming/variable_number'
|
@@ -538,6 +541,7 @@ require_relative 'rubocop/cop/style/empty_heredoc'
|
|
538
541
|
require_relative 'rubocop/cop/style/empty_lambda_parameter'
|
539
542
|
require_relative 'rubocop/cop/style/empty_literal'
|
540
543
|
require_relative 'rubocop/cop/style/empty_method'
|
544
|
+
require_relative 'rubocop/cop/style/empty_string_inside_interpolation'
|
541
545
|
require_relative 'rubocop/cop/style/endless_method'
|
542
546
|
require_relative 'rubocop/cop/style/encoding'
|
543
547
|
require_relative 'rubocop/cop/style/end_block'
|
@@ -604,6 +608,7 @@ require_relative 'rubocop/cop/style/numbered_parameters'
|
|
604
608
|
require_relative 'rubocop/cop/style/open_struct_use'
|
605
609
|
require_relative 'rubocop/cop/style/operator_method_call'
|
606
610
|
require_relative 'rubocop/cop/style/redundant_array_constructor'
|
611
|
+
require_relative 'rubocop/cop/style/redundant_array_flatten'
|
607
612
|
require_relative 'rubocop/cop/style/redundant_assignment'
|
608
613
|
require_relative 'rubocop/cop/style/redundant_constant_base'
|
609
614
|
require_relative 'rubocop/cop/style/redundant_current_directory_in_path'
|
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.
|
4
|
+
version: 1.76.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
- Yuji Nakayama
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-
|
12
|
+
date: 2025-06-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -127,7 +127,7 @@ dependencies:
|
|
127
127
|
requirements:
|
128
128
|
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 1.
|
130
|
+
version: 1.45.0
|
131
131
|
- - "<"
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '2.0'
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
requirements:
|
138
138
|
- - ">="
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: 1.
|
140
|
+
version: 1.45.0
|
141
141
|
- - "<"
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: '2.0'
|
@@ -561,10 +561,12 @@ files:
|
|
561
561
|
- lib/rubocop/cop/lint/useless_access_modifier.rb
|
562
562
|
- lib/rubocop/cop/lint/useless_assignment.rb
|
563
563
|
- lib/rubocop/cop/lint/useless_constant_scoping.rb
|
564
|
+
- lib/rubocop/cop/lint/useless_default_value_argument.rb
|
564
565
|
- lib/rubocop/cop/lint/useless_defined.rb
|
565
566
|
- lib/rubocop/cop/lint/useless_else_without_rescue.rb
|
566
567
|
- lib/rubocop/cop/lint/useless_method_definition.rb
|
567
568
|
- lib/rubocop/cop/lint/useless_numeric_operation.rb
|
569
|
+
- lib/rubocop/cop/lint/useless_or.rb
|
568
570
|
- lib/rubocop/cop/lint/useless_rescue.rb
|
569
571
|
- lib/rubocop/cop/lint/useless_ruby2_keywords.rb
|
570
572
|
- lib/rubocop/cop/lint/useless_setter_call.rb
|
@@ -679,7 +681,8 @@ files:
|
|
679
681
|
- lib/rubocop/cop/naming/memoized_instance_variable_name.rb
|
680
682
|
- lib/rubocop/cop/naming/method_name.rb
|
681
683
|
- lib/rubocop/cop/naming/method_parameter_name.rb
|
682
|
-
- lib/rubocop/cop/naming/
|
684
|
+
- lib/rubocop/cop/naming/predicate_method.rb
|
685
|
+
- lib/rubocop/cop/naming/predicate_prefix.rb
|
683
686
|
- lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb
|
684
687
|
- lib/rubocop/cop/naming/variable_name.rb
|
685
688
|
- lib/rubocop/cop/naming/variable_number.rb
|
@@ -758,6 +761,7 @@ files:
|
|
758
761
|
- lib/rubocop/cop/style/empty_lambda_parameter.rb
|
759
762
|
- lib/rubocop/cop/style/empty_literal.rb
|
760
763
|
- lib/rubocop/cop/style/empty_method.rb
|
764
|
+
- lib/rubocop/cop/style/empty_string_inside_interpolation.rb
|
761
765
|
- lib/rubocop/cop/style/encoding.rb
|
762
766
|
- lib/rubocop/cop/style/end_block.rb
|
763
767
|
- lib/rubocop/cop/style/endless_method.rb
|
@@ -878,6 +882,7 @@ files:
|
|
878
882
|
- lib/rubocop/cop/style/random_with_offset.rb
|
879
883
|
- lib/rubocop/cop/style/redundant_argument.rb
|
880
884
|
- lib/rubocop/cop/style/redundant_array_constructor.rb
|
885
|
+
- lib/rubocop/cop/style/redundant_array_flatten.rb
|
881
886
|
- lib/rubocop/cop/style/redundant_assignment.rb
|
882
887
|
- lib/rubocop/cop/style/redundant_begin.rb
|
883
888
|
- lib/rubocop/cop/style/redundant_capital_w.rb
|
@@ -1080,9 +1085,9 @@ licenses:
|
|
1080
1085
|
- MIT
|
1081
1086
|
metadata:
|
1082
1087
|
homepage_uri: https://rubocop.org/
|
1083
|
-
changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.
|
1088
|
+
changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.76.1
|
1084
1089
|
source_code_uri: https://github.com/rubocop/rubocop/
|
1085
|
-
documentation_uri: https://docs.rubocop.org/rubocop/1.
|
1090
|
+
documentation_uri: https://docs.rubocop.org/rubocop/1.76/
|
1086
1091
|
bug_tracker_uri: https://github.com/rubocop/rubocop/issues
|
1087
1092
|
rubygems_mfa_required: 'true'
|
1088
1093
|
rdoc_options: []
|