rubocop 1.56.3 → 1.57.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 +12 -0
- data/lib/rubocop/cli.rb +1 -1
- data/lib/rubocop/cop/autocorrect_logic.rb +3 -1
- data/lib/rubocop/cop/internal_affairs/example_description.rb +42 -22
- data/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb +2 -0
- data/lib/rubocop/cop/layout/dot_position.rb +1 -5
- data/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb +8 -0
- data/lib/rubocop/cop/layout/indentation_width.rb +1 -1
- data/lib/rubocop/cop/layout/multiline_method_call_indentation.rb +18 -3
- data/lib/rubocop/cop/layout/space_inside_parens.rb +1 -1
- data/lib/rubocop/cop/lint/debugger.rb +10 -1
- data/lib/rubocop/cop/lint/empty_block.rb +1 -1
- data/lib/rubocop/cop/lint/literal_in_interpolation.rb +1 -1
- data/lib/rubocop/cop/lint/mixed_case_range.rb +1 -1
- data/lib/rubocop/cop/lint/non_atomic_file_operation.rb +0 -1
- data/lib/rubocop/cop/lint/redundant_require_statement.rb +4 -0
- data/lib/rubocop/cop/lint/redundant_safe_navigation.rb +20 -4
- data/lib/rubocop/cop/lint/safe_navigation_chain.rb +11 -4
- data/lib/rubocop/cop/metrics/block_length.rb +1 -1
- data/lib/rubocop/cop/metrics/class_length.rb +2 -2
- data/lib/rubocop/cop/metrics/utils/code_length_calculator.rb +2 -2
- data/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +3 -2
- data/lib/rubocop/cop/style/class_equality_comparison.rb +5 -0
- data/lib/rubocop/cop/style/collection_methods.rb +2 -0
- data/lib/rubocop/cop/style/format_string.rb +24 -3
- data/lib/rubocop/cop/style/guard_clause.rb +26 -0
- data/lib/rubocop/cop/style/identical_conditional_branches.rb +17 -3
- data/lib/rubocop/cop/style/multiline_block_chain.rb +1 -1
- data/lib/rubocop/cop/style/nested_ternary_operator.rb +3 -11
- data/lib/rubocop/cop/style/operator_method_call.rb +6 -0
- data/lib/rubocop/cop/style/redundant_begin.rb +9 -1
- data/lib/rubocop/cop/style/redundant_conditional.rb +1 -9
- data/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb +86 -5
- data/lib/rubocop/cop/style/redundant_exception.rb +32 -12
- data/lib/rubocop/cop/style/redundant_filter_chain.rb +18 -2
- data/lib/rubocop/cop/style/redundant_parentheses.rb +21 -5
- data/lib/rubocop/cop/style/return_nil.rb +6 -2
- data/lib/rubocop/cop/style/single_line_do_end_block.rb +65 -0
- data/lib/rubocop/magic_comment.rb +12 -10
- data/lib/rubocop/server/cache.rb +1 -0
- data/lib/rubocop/version.rb +1 -1
- data/lib/rubocop.rb +1 -0
- metadata +10 -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.57.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-10-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: base64
|
@@ -74,14 +74,14 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 3.2.2.
|
77
|
+
version: 3.2.2.4
|
78
78
|
type: :runtime
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 3.2.2.
|
84
|
+
version: 3.2.2.4
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: rainbow
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -895,6 +895,7 @@ files:
|
|
895
895
|
- lib/rubocop/cop/style/signal_exception.rb
|
896
896
|
- lib/rubocop/cop/style/single_argument_dig.rb
|
897
897
|
- lib/rubocop/cop/style/single_line_block_params.rb
|
898
|
+
- lib/rubocop/cop/style/single_line_do_end_block.rb
|
898
899
|
- lib/rubocop/cop/style/single_line_methods.rb
|
899
900
|
- lib/rubocop/cop/style/slicing_with_range.rb
|
900
901
|
- lib/rubocop/cop/style/sole_nested_conditional.rb
|
@@ -1038,10 +1039,10 @@ metadata:
|
|
1038
1039
|
homepage_uri: https://rubocop.org/
|
1039
1040
|
changelog_uri: https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md
|
1040
1041
|
source_code_uri: https://github.com/rubocop/rubocop/
|
1041
|
-
documentation_uri: https://docs.rubocop.org/rubocop/1.
|
1042
|
+
documentation_uri: https://docs.rubocop.org/rubocop/1.57/
|
1042
1043
|
bug_tracker_uri: https://github.com/rubocop/rubocop/issues
|
1043
1044
|
rubygems_mfa_required: 'true'
|
1044
|
-
post_install_message:
|
1045
|
+
post_install_message:
|
1045
1046
|
rdoc_options: []
|
1046
1047
|
require_paths:
|
1047
1048
|
- lib
|
@@ -1056,8 +1057,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1056
1057
|
- !ruby/object:Gem::Version
|
1057
1058
|
version: '0'
|
1058
1059
|
requirements: []
|
1059
|
-
rubygems_version: 3.
|
1060
|
-
signing_key:
|
1060
|
+
rubygems_version: 3.3.7
|
1061
|
+
signing_key:
|
1061
1062
|
specification_version: 4
|
1062
1063
|
summary: Automatic Ruby code style checking tool.
|
1063
1064
|
test_files: []
|