rubocop 1.75.5 → 1.76.2
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 +20 -14
- data/config/default.yml +55 -7
- data/config/obsoletion.yml +6 -3
- data/lib/rubocop/cop/autocorrect_logic.rb +18 -10
- data/lib/rubocop/cop/bundler/ordered_gems.rb +1 -1
- data/lib/rubocop/cop/gemspec/duplicated_assignment.rb +50 -6
- 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/layout/class_structure.rb +35 -0
- data/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb +7 -3
- data/lib/rubocop/cop/layout/first_argument_indentation.rb +1 -1
- data/lib/rubocop/cop/layout/space_before_brackets.rb +6 -32
- data/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb +1 -0
- data/lib/rubocop/cop/lint/ambiguous_range.rb +5 -0
- data/lib/rubocop/cop/lint/deprecated_class_methods.rb +1 -1
- data/lib/rubocop/cop/lint/duplicate_methods.rb +84 -2
- data/lib/rubocop/cop/lint/empty_interpolation.rb +3 -1
- data/lib/rubocop/cop/lint/float_comparison.rb +27 -0
- 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/safe_navigation_chain.rb +4 -4
- data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +5 -0
- data/lib/rubocop/cop/lint/useless_access_modifier.rb +21 -4
- data/lib/rubocop/cop/lint/useless_assignment.rb +2 -0
- data/lib/rubocop/cop/lint/useless_default_value_argument.rb +90 -0
- data/lib/rubocop/cop/lint/useless_or.rb +98 -0
- data/lib/rubocop/cop/metrics/abc_size.rb +1 -1
- data/lib/rubocop/cop/mixin/frozen_string_literal.rb +1 -1
- data/lib/rubocop/cop/mixin/ordered_gem_node.rb +1 -1
- data/lib/rubocop/cop/naming/predicate_method.rb +245 -0
- data/lib/rubocop/cop/naming/{predicate_name.rb → predicate_prefix.rb} +2 -2
- data/lib/rubocop/cop/style/access_modifier_declarations.rb +32 -10
- data/lib/rubocop/cop/style/command_literal.rb +1 -1
- data/lib/rubocop/cop/style/comparable_between.rb +3 -0
- data/lib/rubocop/cop/style/conditional_assignment.rb +3 -1
- data/lib/rubocop/cop/style/data_inheritance.rb +7 -0
- data/lib/rubocop/cop/style/def_with_parentheses.rb +18 -5
- data/lib/rubocop/cop/style/empty_string_inside_interpolation.rb +100 -0
- data/lib/rubocop/cop/style/if_unless_modifier.rb +22 -4
- data/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +4 -7
- data/lib/rubocop/cop/style/it_block_parameter.rb +33 -14
- data/lib/rubocop/cop/style/map_to_hash.rb +11 -0
- data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +1 -1
- data/lib/rubocop/cop/style/min_max_comparison.rb +13 -5
- data/lib/rubocop/cop/style/multiline_if_modifier.rb +2 -0
- data/lib/rubocop/cop/style/percent_q_literals.rb +1 -1
- data/lib/rubocop/cop/style/redundant_array_flatten.rb +50 -0
- data/lib/rubocop/cop/style/redundant_format.rb +6 -1
- data/lib/rubocop/cop/style/redundant_parentheses.rb +23 -5
- data/lib/rubocop/cop/style/redundant_self.rb +5 -5
- data/lib/rubocop/cop/style/regexp_literal.rb +1 -1
- data/lib/rubocop/cop/style/safe_navigation.rb +24 -11
- data/lib/rubocop/cop/style/sole_nested_conditional.rb +4 -2
- data/lib/rubocop/cop/style/string_concatenation.rb +1 -2
- data/lib/rubocop/cop/style/struct_inheritance.rb +8 -1
- data/lib/rubocop/cop/style/trailing_comma_in_block_args.rb +1 -1
- data/lib/rubocop/cop/team.rb +1 -1
- data/lib/rubocop/cop/variable_force/assignment.rb +7 -3
- data/lib/rubocop/formatter/disabled_config_formatter.rb +1 -0
- data/lib/rubocop/formatter/html_formatter.rb +1 -1
- data/lib/rubocop/rspec/expect_offense.rb +9 -3
- data/lib/rubocop/version.rb +1 -1
- data/lib/rubocop.rb +6 -1
- metadata +13 -11
metadata
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.76.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
8
8
|
- Jonas Arvidsson
|
9
9
|
- Yuji Nakayama
|
10
|
-
autorequire:
|
11
10
|
bindir: exe
|
12
11
|
cert_chain: []
|
13
|
-
date: 2025-
|
12
|
+
date: 2025-06-17 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: json
|
@@ -128,7 +127,7 @@ dependencies:
|
|
128
127
|
requirements:
|
129
128
|
- - ">="
|
130
129
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.
|
130
|
+
version: 1.45.1
|
132
131
|
- - "<"
|
133
132
|
- !ruby/object:Gem::Version
|
134
133
|
version: '2.0'
|
@@ -138,7 +137,7 @@ dependencies:
|
|
138
137
|
requirements:
|
139
138
|
- - ">="
|
140
139
|
- !ruby/object:Gem::Version
|
141
|
-
version: 1.
|
140
|
+
version: 1.45.1
|
142
141
|
- - "<"
|
143
142
|
- !ruby/object:Gem::Version
|
144
143
|
version: '2.0'
|
@@ -562,10 +561,12 @@ files:
|
|
562
561
|
- lib/rubocop/cop/lint/useless_access_modifier.rb
|
563
562
|
- lib/rubocop/cop/lint/useless_assignment.rb
|
564
563
|
- lib/rubocop/cop/lint/useless_constant_scoping.rb
|
564
|
+
- lib/rubocop/cop/lint/useless_default_value_argument.rb
|
565
565
|
- lib/rubocop/cop/lint/useless_defined.rb
|
566
566
|
- lib/rubocop/cop/lint/useless_else_without_rescue.rb
|
567
567
|
- lib/rubocop/cop/lint/useless_method_definition.rb
|
568
568
|
- lib/rubocop/cop/lint/useless_numeric_operation.rb
|
569
|
+
- lib/rubocop/cop/lint/useless_or.rb
|
569
570
|
- lib/rubocop/cop/lint/useless_rescue.rb
|
570
571
|
- lib/rubocop/cop/lint/useless_ruby2_keywords.rb
|
571
572
|
- lib/rubocop/cop/lint/useless_setter_call.rb
|
@@ -680,7 +681,8 @@ files:
|
|
680
681
|
- lib/rubocop/cop/naming/memoized_instance_variable_name.rb
|
681
682
|
- lib/rubocop/cop/naming/method_name.rb
|
682
683
|
- lib/rubocop/cop/naming/method_parameter_name.rb
|
683
|
-
- lib/rubocop/cop/naming/
|
684
|
+
- lib/rubocop/cop/naming/predicate_method.rb
|
685
|
+
- lib/rubocop/cop/naming/predicate_prefix.rb
|
684
686
|
- lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb
|
685
687
|
- lib/rubocop/cop/naming/variable_name.rb
|
686
688
|
- lib/rubocop/cop/naming/variable_number.rb
|
@@ -759,6 +761,7 @@ files:
|
|
759
761
|
- lib/rubocop/cop/style/empty_lambda_parameter.rb
|
760
762
|
- lib/rubocop/cop/style/empty_literal.rb
|
761
763
|
- lib/rubocop/cop/style/empty_method.rb
|
764
|
+
- lib/rubocop/cop/style/empty_string_inside_interpolation.rb
|
762
765
|
- lib/rubocop/cop/style/encoding.rb
|
763
766
|
- lib/rubocop/cop/style/end_block.rb
|
764
767
|
- lib/rubocop/cop/style/endless_method.rb
|
@@ -879,6 +882,7 @@ files:
|
|
879
882
|
- lib/rubocop/cop/style/random_with_offset.rb
|
880
883
|
- lib/rubocop/cop/style/redundant_argument.rb
|
881
884
|
- lib/rubocop/cop/style/redundant_array_constructor.rb
|
885
|
+
- lib/rubocop/cop/style/redundant_array_flatten.rb
|
882
886
|
- lib/rubocop/cop/style/redundant_assignment.rb
|
883
887
|
- lib/rubocop/cop/style/redundant_begin.rb
|
884
888
|
- lib/rubocop/cop/style/redundant_capital_w.rb
|
@@ -1081,12 +1085,11 @@ licenses:
|
|
1081
1085
|
- MIT
|
1082
1086
|
metadata:
|
1083
1087
|
homepage_uri: https://rubocop.org/
|
1084
|
-
changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.
|
1088
|
+
changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.76.2
|
1085
1089
|
source_code_uri: https://github.com/rubocop/rubocop/
|
1086
|
-
documentation_uri: https://docs.rubocop.org/rubocop/1.
|
1090
|
+
documentation_uri: https://docs.rubocop.org/rubocop/1.76/
|
1087
1091
|
bug_tracker_uri: https://github.com/rubocop/rubocop/issues
|
1088
1092
|
rubygems_mfa_required: 'true'
|
1089
|
-
post_install_message:
|
1090
1093
|
rdoc_options: []
|
1091
1094
|
require_paths:
|
1092
1095
|
- lib
|
@@ -1101,8 +1104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1101
1104
|
- !ruby/object:Gem::Version
|
1102
1105
|
version: '0'
|
1103
1106
|
requirements: []
|
1104
|
-
rubygems_version: 3.
|
1105
|
-
signing_key:
|
1107
|
+
rubygems_version: 3.6.2
|
1106
1108
|
specification_version: 4
|
1107
1109
|
summary: Automatic Ruby code style checking tool.
|
1108
1110
|
test_files: []
|