rubocop 1.67.0 → 1.68.0
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 +40 -0
- data/lib/rubocop/cached_data.rb +12 -4
- data/lib/rubocop/cli/command/execute_runner.rb +1 -1
- data/lib/rubocop/cli/command/version.rb +2 -2
- data/lib/rubocop/cop/autocorrect_logic.rb +22 -2
- data/lib/rubocop/cop/correctors/alignment_corrector.rb +1 -12
- data/lib/rubocop/cop/correctors/percent_literal_corrector.rb +10 -0
- data/lib/rubocop/cop/layout/leading_comment_space.rb +29 -1
- data/lib/rubocop/cop/layout/space_before_brackets.rb +5 -5
- data/lib/rubocop/cop/layout/space_inside_block_braces.rb +4 -0
- data/lib/rubocop/cop/lint/duplicate_branch.rb +39 -4
- data/lib/rubocop/cop/lint/non_atomic_file_operation.rb +7 -0
- data/lib/rubocop/cop/lint/safe_navigation_chain.rb +9 -0
- data/lib/rubocop/cop/lint/safe_navigation_consistency.rb +3 -1
- data/lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb +88 -0
- data/lib/rubocop/cop/metrics/cyclomatic_complexity.rb +4 -1
- data/lib/rubocop/cop/mixin/check_line_breakable.rb +10 -0
- data/lib/rubocop/cop/mixin/endless_method_rewriter.rb +24 -0
- data/lib/rubocop/cop/mixin/frozen_string_literal.rb +3 -1
- data/lib/rubocop/cop/naming/block_forwarding.rb +1 -1
- data/lib/rubocop/cop/offense.rb +2 -3
- data/lib/rubocop/cop/style/ambiguous_endless_method_definition.rb +79 -0
- data/lib/rubocop/cop/style/bitwise_predicate.rb +100 -0
- data/lib/rubocop/cop/style/block_delimiters.rb +17 -2
- data/lib/rubocop/cop/style/combinable_defined.rb +115 -0
- data/lib/rubocop/cop/style/endless_method.rb +1 -14
- data/lib/rubocop/cop/style/guard_clause.rb +14 -1
- data/lib/rubocop/cop/style/keyword_arguments_merging.rb +67 -0
- data/lib/rubocop/cop/style/map_into_array.rb +6 -1
- data/lib/rubocop/cop/style/multiple_comparison.rb +28 -39
- data/lib/rubocop/cop/style/redundant_line_continuation.rb +20 -2
- data/lib/rubocop/cop/style/redundant_parentheses.rb +8 -10
- data/lib/rubocop/cop/style/safe_navigation.rb +12 -0
- data/lib/rubocop/cop/style/safe_navigation_chain_length.rb +52 -0
- data/lib/rubocop/cop/style/ternary_parentheses.rb +25 -4
- data/lib/rubocop/cop/variable_force/assignment.rb +18 -3
- data/lib/rubocop/cop/variable_force/branch.rb +1 -1
- data/lib/rubocop/cop/variable_force/variable.rb +5 -1
- data/lib/rubocop/cop/variable_force/variable_table.rb +2 -2
- data/lib/rubocop/cops_documentation_generator.rb +11 -9
- data/lib/rubocop/formatter/disabled_config_formatter.rb +1 -1
- data/lib/rubocop/runner.rb +16 -8
- data/lib/rubocop/target_ruby.rb +1 -1
- data/lib/rubocop/version.rb +27 -8
- data/lib/rubocop.rb +8 -0
- metadata +15 -8
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.68.0
|
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: 2024-10-
|
13
|
+
date: 2024-10-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -517,6 +517,7 @@ files:
|
|
517
517
|
- lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb
|
518
518
|
- lib/rubocop/cop/lint/triple_quotes.rb
|
519
519
|
- lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb
|
520
|
+
- lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb
|
520
521
|
- lib/rubocop/cop/lint/unexpected_block_arity.rb
|
521
522
|
- lib/rubocop/cop/lint/unified_integer.rb
|
522
523
|
- lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb
|
@@ -577,6 +578,7 @@ files:
|
|
577
578
|
- lib/rubocop/cop/mixin/empty_lines_around_body.rb
|
578
579
|
- lib/rubocop/cop/mixin/empty_parameter.rb
|
579
580
|
- lib/rubocop/cop/mixin/end_keyword_alignment.rb
|
581
|
+
- lib/rubocop/cop/mixin/endless_method_rewriter.rb
|
580
582
|
- lib/rubocop/cop/mixin/enforce_superclass.rb
|
581
583
|
- lib/rubocop/cop/mixin/first_element_line_break.rb
|
582
584
|
- lib/rubocop/cop/mixin/frozen_string_literal.rb
|
@@ -656,6 +658,7 @@ files:
|
|
656
658
|
- lib/rubocop/cop/style/access_modifier_declarations.rb
|
657
659
|
- lib/rubocop/cop/style/accessor_grouping.rb
|
658
660
|
- lib/rubocop/cop/style/alias.rb
|
661
|
+
- lib/rubocop/cop/style/ambiguous_endless_method_definition.rb
|
659
662
|
- lib/rubocop/cop/style/and_or.rb
|
660
663
|
- lib/rubocop/cop/style/arguments_forwarding.rb
|
661
664
|
- lib/rubocop/cop/style/array_coercion.rb
|
@@ -669,6 +672,7 @@ files:
|
|
669
672
|
- lib/rubocop/cop/style/begin_block.rb
|
670
673
|
- lib/rubocop/cop/style/bisected_attr_accessor.rb
|
671
674
|
- lib/rubocop/cop/style/bisected_attr_accessor/macro.rb
|
675
|
+
- lib/rubocop/cop/style/bitwise_predicate.rb
|
672
676
|
- lib/rubocop/cop/style/block_comments.rb
|
673
677
|
- lib/rubocop/cop/style/block_delimiters.rb
|
674
678
|
- lib/rubocop/cop/style/case_equality.rb
|
@@ -684,6 +688,7 @@ files:
|
|
684
688
|
- lib/rubocop/cop/style/collection_methods.rb
|
685
689
|
- lib/rubocop/cop/style/colon_method_call.rb
|
686
690
|
- lib/rubocop/cop/style/colon_method_definition.rb
|
691
|
+
- lib/rubocop/cop/style/combinable_defined.rb
|
687
692
|
- lib/rubocop/cop/style/combinable_loops.rb
|
688
693
|
- lib/rubocop/cop/style/command_literal.rb
|
689
694
|
- lib/rubocop/cop/style/comment_annotation.rb
|
@@ -756,6 +761,7 @@ files:
|
|
756
761
|
- lib/rubocop/cop/style/inverse_methods.rb
|
757
762
|
- lib/rubocop/cop/style/invertible_unless_condition.rb
|
758
763
|
- lib/rubocop/cop/style/ip_addresses.rb
|
764
|
+
- lib/rubocop/cop/style/keyword_arguments_merging.rb
|
759
765
|
- lib/rubocop/cop/style/keyword_parameters_order.rb
|
760
766
|
- lib/rubocop/cop/style/lambda.rb
|
761
767
|
- lib/rubocop/cop/style/lambda_call.rb
|
@@ -865,6 +871,7 @@ files:
|
|
865
871
|
- lib/rubocop/cop/style/return_nil.rb
|
866
872
|
- lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb
|
867
873
|
- lib/rubocop/cop/style/safe_navigation.rb
|
874
|
+
- lib/rubocop/cop/style/safe_navigation_chain_length.rb
|
868
875
|
- lib/rubocop/cop/style/sample.rb
|
869
876
|
- lib/rubocop/cop/style/select_by_regexp.rb
|
870
877
|
- lib/rubocop/cop/style/self_assignment.rb
|
@@ -1019,12 +1026,12 @@ licenses:
|
|
1019
1026
|
- MIT
|
1020
1027
|
metadata:
|
1021
1028
|
homepage_uri: https://rubocop.org/
|
1022
|
-
changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.
|
1029
|
+
changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.68.0
|
1023
1030
|
source_code_uri: https://github.com/rubocop/rubocop/
|
1024
|
-
documentation_uri: https://docs.rubocop.org/rubocop/1.
|
1031
|
+
documentation_uri: https://docs.rubocop.org/rubocop/1.68/
|
1025
1032
|
bug_tracker_uri: https://github.com/rubocop/rubocop/issues
|
1026
1033
|
rubygems_mfa_required: 'true'
|
1027
|
-
post_install_message:
|
1034
|
+
post_install_message:
|
1028
1035
|
rdoc_options: []
|
1029
1036
|
require_paths:
|
1030
1037
|
- lib
|
@@ -1039,8 +1046,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1039
1046
|
- !ruby/object:Gem::Version
|
1040
1047
|
version: '0'
|
1041
1048
|
requirements: []
|
1042
|
-
rubygems_version: 3.
|
1043
|
-
signing_key:
|
1049
|
+
rubygems_version: 3.4.22
|
1050
|
+
signing_key:
|
1044
1051
|
specification_version: 4
|
1045
1052
|
summary: Automatic Ruby code style checking tool.
|
1046
1053
|
test_files: []
|