rubocop 1.51.0 → 1.52.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/default.yml +20 -2
- data/lib/rubocop/cop/base.rb +1 -1
- data/lib/rubocop/cop/internal_affairs/cop_description.rb +32 -8
- data/lib/rubocop/cop/layout/closing_heredoc_indentation.rb +0 -1
- data/lib/rubocop/cop/lint/ambiguous_block_association.rb +2 -1
- data/lib/rubocop/cop/lint/erb_new_arguments.rb +1 -2
- data/lib/rubocop/cop/lint/identity_comparison.rb +0 -1
- data/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb +1 -2
- data/lib/rubocop/cop/lint/inherit_exception.rb +9 -0
- data/lib/rubocop/cop/lint/missing_super.rb +3 -0
- data/lib/rubocop/cop/lint/ordered_magic_comments.rb +0 -1
- data/lib/rubocop/cop/lint/send_with_mixin_argument.rb +1 -2
- data/lib/rubocop/cop/lint/shadowed_exception.rb +5 -11
- data/lib/rubocop/cop/lint/useless_assignment.rb +4 -1
- data/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb +1 -2
- data/lib/rubocop/cop/mixin/allowed_receivers.rb +34 -0
- data/lib/rubocop/cop/naming/variable_name.rb +6 -1
- data/lib/rubocop/cop/style/accessor_grouping.rb +5 -1
- data/lib/rubocop/cop/style/begin_block.rb +1 -2
- data/lib/rubocop/cop/style/class_and_module_children.rb +1 -1
- data/lib/rubocop/cop/style/class_equality_comparison.rb +17 -39
- data/lib/rubocop/cop/style/collection_compact.rb +6 -0
- data/lib/rubocop/cop/style/dir.rb +1 -1
- data/lib/rubocop/cop/style/dir_empty.rb +8 -14
- data/lib/rubocop/cop/style/eval_with_location.rb +4 -4
- data/lib/rubocop/cop/style/exact_regexp_match.rb +8 -2
- data/lib/rubocop/cop/style/file_read.rb +2 -2
- data/lib/rubocop/cop/style/hash_each_methods.rb +1 -22
- data/lib/rubocop/cop/style/hash_transform_keys.rb +2 -2
- data/lib/rubocop/cop/style/hash_transform_values.rb +2 -2
- data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +1 -2
- data/lib/rubocop/cop/style/multiple_comparison.rb +14 -0
- data/lib/rubocop/cop/style/numeric_literals.rb +1 -1
- data/lib/rubocop/cop/style/redundant_array_constructor.rb +77 -0
- data/lib/rubocop/cop/style/redundant_filter_chain.rb +101 -0
- data/lib/rubocop/cop/style/redundant_regexp_constructor.rb +46 -0
- data/lib/rubocop/cop/style/require_order.rb +2 -1
- data/lib/rubocop/cop/style/rescue_modifier.rb +1 -3
- data/lib/rubocop/cop/style/select_by_regexp.rb +15 -5
- data/lib/rubocop/cop/style/single_line_methods.rb +1 -1
- data/lib/rubocop/cop/style/sole_nested_conditional.rb +3 -1
- data/lib/rubocop/cop/style/special_global_vars.rb +1 -2
- data/lib/rubocop/cop/variable_force/assignment.rb +29 -1
- data/lib/rubocop/cop/variable_force.rb +1 -0
- data/lib/rubocop/server/client_command/exec.rb +2 -1
- data/lib/rubocop/version.rb +8 -4
- data/lib/rubocop.rb +4 -0
- metadata +13 -9
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.52.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
8
8
|
- Jonas Arvidsson
|
9
9
|
- Yuji Nakayama
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-06-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -46,14 +46,14 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 3.2.
|
49
|
+
version: 3.2.2.3
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 3.2.
|
56
|
+
version: 3.2.2.3
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: rainbow
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
@@ -550,6 +550,7 @@ files:
|
|
550
550
|
- lib/rubocop/cop/mixin/allowed_identifiers.rb
|
551
551
|
- lib/rubocop/cop/mixin/allowed_methods.rb
|
552
552
|
- lib/rubocop/cop/mixin/allowed_pattern.rb
|
553
|
+
- lib/rubocop/cop/mixin/allowed_receivers.rb
|
553
554
|
- lib/rubocop/cop/mixin/annotation_comment.rb
|
554
555
|
- lib/rubocop/cop/mixin/array_min_size.rb
|
555
556
|
- lib/rubocop/cop/mixin/array_syntax.rb
|
@@ -815,6 +816,7 @@ files:
|
|
815
816
|
- lib/rubocop/cop/style/raise_args.rb
|
816
817
|
- lib/rubocop/cop/style/random_with_offset.rb
|
817
818
|
- lib/rubocop/cop/style/redundant_argument.rb
|
819
|
+
- lib/rubocop/cop/style/redundant_array_constructor.rb
|
818
820
|
- lib/rubocop/cop/style/redundant_assignment.rb
|
819
821
|
- lib/rubocop/cop/style/redundant_begin.rb
|
820
822
|
- lib/rubocop/cop/style/redundant_capital_w.rb
|
@@ -826,6 +828,7 @@ files:
|
|
826
828
|
- lib/rubocop/cop/style/redundant_exception.rb
|
827
829
|
- lib/rubocop/cop/style/redundant_fetch_block.rb
|
828
830
|
- lib/rubocop/cop/style/redundant_file_extension_in_require.rb
|
831
|
+
- lib/rubocop/cop/style/redundant_filter_chain.rb
|
829
832
|
- lib/rubocop/cop/style/redundant_freeze.rb
|
830
833
|
- lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb
|
831
834
|
- lib/rubocop/cop/style/redundant_initialize.rb
|
@@ -834,6 +837,7 @@ files:
|
|
834
837
|
- lib/rubocop/cop/style/redundant_parentheses.rb
|
835
838
|
- lib/rubocop/cop/style/redundant_percent_q.rb
|
836
839
|
- lib/rubocop/cop/style/redundant_regexp_character_class.rb
|
840
|
+
- lib/rubocop/cop/style/redundant_regexp_constructor.rb
|
837
841
|
- lib/rubocop/cop/style/redundant_regexp_escape.rb
|
838
842
|
- lib/rubocop/cop/style/redundant_return.rb
|
839
843
|
- lib/rubocop/cop/style/redundant_self.rb
|
@@ -992,10 +996,10 @@ metadata:
|
|
992
996
|
homepage_uri: https://rubocop.org/
|
993
997
|
changelog_uri: https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md
|
994
998
|
source_code_uri: https://github.com/rubocop/rubocop/
|
995
|
-
documentation_uri: https://docs.rubocop.org/rubocop/1.
|
999
|
+
documentation_uri: https://docs.rubocop.org/rubocop/1.52/
|
996
1000
|
bug_tracker_uri: https://github.com/rubocop/rubocop/issues
|
997
1001
|
rubygems_mfa_required: 'true'
|
998
|
-
post_install_message:
|
1002
|
+
post_install_message:
|
999
1003
|
rdoc_options: []
|
1000
1004
|
require_paths:
|
1001
1005
|
- lib
|
@@ -1010,8 +1014,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1010
1014
|
- !ruby/object:Gem::Version
|
1011
1015
|
version: '0'
|
1012
1016
|
requirements: []
|
1013
|
-
rubygems_version: 3.
|
1014
|
-
signing_key:
|
1017
|
+
rubygems_version: 3.3.7
|
1018
|
+
signing_key:
|
1015
1019
|
specification_version: 4
|
1016
1020
|
summary: Automatic Ruby code style checking tool.
|
1017
1021
|
test_files: []
|