rubocop 0.93.0 → 1.3.0
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 +36 -16
- data/config/default.yml +207 -77
- data/exe/rubocop +1 -1
- data/lib/rubocop.rb +16 -2
- data/lib/rubocop/cli/command/auto_genenerate_config.rb +1 -1
- data/lib/rubocop/cli/command/version.rb +1 -1
- data/lib/rubocop/comment_config.rb +1 -1
- data/lib/rubocop/config.rb +4 -0
- data/lib/rubocop/config_loader.rb +26 -8
- data/lib/rubocop/config_loader_resolver.rb +7 -5
- data/lib/rubocop/config_validator.rb +7 -6
- data/lib/rubocop/cop/badge.rb +9 -24
- data/lib/rubocop/cop/base.rb +16 -1
- data/lib/rubocop/cop/bundler/duplicated_gem.rb +26 -6
- data/lib/rubocop/cop/bundler/gem_comment.rb +1 -1
- data/lib/rubocop/cop/commissioner.rb +37 -23
- data/lib/rubocop/cop/corrector.rb +3 -1
- data/lib/rubocop/cop/correctors/percent_literal_corrector.rb +1 -1
- data/lib/rubocop/cop/force.rb +1 -1
- data/lib/rubocop/cop/gemspec/duplicated_assignment.rb +3 -3
- data/lib/rubocop/cop/gemspec/required_ruby_version.rb +4 -5
- data/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb +1 -1
- data/lib/rubocop/cop/generator.rb +1 -1
- data/lib/rubocop/cop/layout/block_alignment.rb +3 -4
- data/lib/rubocop/cop/layout/class_structure.rb +7 -0
- data/lib/rubocop/cop/layout/def_end_alignment.rb +1 -1
- data/lib/rubocop/cop/layout/else_alignment.rb +15 -2
- data/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb +1 -0
- data/lib/rubocop/cop/layout/end_alignment.rb +3 -3
- data/lib/rubocop/cop/layout/extra_spacing.rb +1 -2
- data/lib/rubocop/cop/layout/hash_alignment.rb +4 -4
- data/lib/rubocop/cop/layout/line_length.rb +8 -1
- data/lib/rubocop/cop/layout/space_around_block_parameters.rb +24 -18
- data/lib/rubocop/cop/layout/space_around_operators.rb +4 -1
- data/lib/rubocop/cop/layout/space_inside_parens.rb +35 -13
- data/lib/rubocop/cop/layout/trailing_whitespace.rb +37 -13
- data/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb +6 -3
- data/lib/rubocop/cop/lint/constant_definition_in_block.rb +23 -2
- data/lib/rubocop/cop/lint/debugger.rb +17 -28
- data/lib/rubocop/cop/lint/duplicate_branch.rb +93 -0
- data/lib/rubocop/cop/lint/duplicate_case_condition.rb +2 -12
- data/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb +77 -0
- data/lib/rubocop/cop/lint/else_layout.rb +29 -3
- data/lib/rubocop/cop/lint/empty_block.rb +82 -0
- data/lib/rubocop/cop/lint/empty_class.rb +93 -0
- data/lib/rubocop/cop/lint/flip_flop.rb +8 -2
- data/lib/rubocop/cop/lint/literal_in_interpolation.rb +38 -6
- data/lib/rubocop/cop/lint/loop.rb +4 -4
- data/lib/rubocop/cop/lint/nested_percent_literal.rb +14 -0
- data/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb +58 -0
- data/lib/rubocop/cop/lint/number_conversion.rb +46 -13
- data/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb +27 -8
- data/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb +19 -16
- data/lib/rubocop/cop/lint/redundant_safe_navigation.rb +44 -11
- data/lib/rubocop/cop/lint/shadowed_exception.rb +4 -5
- data/lib/rubocop/cop/lint/to_enum_arguments.rb +95 -0
- data/lib/rubocop/cop/lint/to_json.rb +1 -1
- data/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb +185 -0
- data/lib/rubocop/cop/lint/useless_access_modifier.rb +2 -2
- data/lib/rubocop/cop/lint/useless_method_definition.rb +2 -4
- data/lib/rubocop/cop/lint/useless_setter_call.rb +6 -1
- data/lib/rubocop/cop/metrics/class_length.rb +9 -3
- data/lib/rubocop/cop/metrics/parameter_lists.rb +4 -1
- data/lib/rubocop/cop/mixin/check_line_breakable.rb +1 -1
- data/lib/rubocop/cop/mixin/configurable_numbering.rb +3 -3
- data/lib/rubocop/cop/mixin/line_length_help.rb +1 -1
- data/lib/rubocop/cop/mixin/statement_modifier.rb +9 -4
- data/lib/rubocop/cop/naming/binary_operator_parameter_name.rb +12 -2
- data/lib/rubocop/cop/naming/heredoc_delimiter_case.rb +11 -5
- data/lib/rubocop/cop/naming/memoized_instance_variable_name.rb +67 -18
- data/lib/rubocop/cop/naming/predicate_name.rb +2 -1
- data/lib/rubocop/cop/naming/variable_number.rb +98 -8
- data/lib/rubocop/cop/offense.rb +3 -3
- data/lib/rubocop/cop/security/open.rb +12 -10
- data/lib/rubocop/cop/style/accessor_grouping.rb +1 -1
- data/lib/rubocop/cop/style/and_or.rb +1 -3
- data/lib/rubocop/cop/style/arguments_forwarding.rb +142 -0
- data/lib/rubocop/cop/style/bisected_attr_accessor.rb +0 -4
- data/lib/rubocop/cop/style/case_like_if.rb +0 -4
- data/lib/rubocop/cop/style/class_equality_comparison.rb +19 -4
- data/lib/rubocop/cop/style/collection_compact.rb +91 -0
- data/lib/rubocop/cop/style/document_dynamic_eval_definition.rb +162 -0
- data/lib/rubocop/cop/style/double_negation.rb +6 -1
- data/lib/rubocop/cop/style/format_string_token.rb +47 -2
- data/lib/rubocop/cop/style/hash_syntax.rb +3 -3
- data/lib/rubocop/cop/style/identical_conditional_branches.rb +7 -2
- data/lib/rubocop/cop/style/if_inside_else.rb +37 -1
- data/lib/rubocop/cop/style/if_unless_modifier.rb +7 -3
- data/lib/rubocop/cop/style/infinite_loop.rb +4 -0
- data/lib/rubocop/cop/style/keyword_parameters_order.rb +12 -0
- data/lib/rubocop/cop/style/method_call_with_args_parentheses.rb +10 -13
- data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +6 -11
- data/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb +7 -11
- data/lib/rubocop/cop/style/mixin_grouping.rb +0 -4
- data/lib/rubocop/cop/style/multiple_comparison.rb +55 -7
- data/lib/rubocop/cop/style/negated_if_else_condition.rb +104 -0
- data/lib/rubocop/cop/style/nil_lambda.rb +52 -0
- data/lib/rubocop/cop/style/raise_args.rb +21 -6
- data/lib/rubocop/cop/style/redundant_begin.rb +14 -4
- data/lib/rubocop/cop/style/redundant_parentheses.rb +4 -0
- data/lib/rubocop/cop/style/redundant_regexp_character_class.rb +7 -1
- data/lib/rubocop/cop/style/redundant_regexp_escape.rb +1 -1
- data/lib/rubocop/cop/style/redundant_self.rb +3 -0
- data/lib/rubocop/cop/style/safe_navigation.rb +16 -4
- data/lib/rubocop/cop/style/semicolon.rb +3 -0
- data/lib/rubocop/cop/style/static_class.rb +97 -0
- data/lib/rubocop/cop/style/string_concatenation.rb +13 -1
- data/lib/rubocop/cop/style/swap_values.rb +108 -0
- data/lib/rubocop/cop/style/ternary_parentheses.rb +1 -1
- data/lib/rubocop/cop/style/trailing_underscore_variable.rb +3 -1
- data/lib/rubocop/cop/style/while_until_modifier.rb +9 -0
- data/lib/rubocop/cop/team.rb +6 -1
- data/lib/rubocop/cop/util.rb +5 -1
- data/lib/rubocop/ext/regexp_node.rb +17 -9
- data/lib/rubocop/ext/regexp_parser.rb +84 -0
- data/lib/rubocop/formatter/formatter_set.rb +2 -1
- data/lib/rubocop/formatter/git_hub_actions_formatter.rb +47 -0
- data/lib/rubocop/formatter/offense_count_formatter.rb +1 -1
- data/lib/rubocop/formatter/worst_offenders_formatter.rb +1 -1
- data/lib/rubocop/magic_comment.rb +2 -2
- data/lib/rubocop/options.rb +6 -1
- data/lib/rubocop/rspec/shared_contexts.rb +4 -0
- data/lib/rubocop/target_ruby.rb +57 -1
- data/lib/rubocop/version.rb +56 -6
- metadata +21 -5
data/lib/rubocop/target_ruby.rb
CHANGED
@@ -112,6 +112,62 @@ module RuboCop
|
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
115
|
+
# The target ruby version may be found in a .gemspec file.
|
116
|
+
# @api private
|
117
|
+
class GemspecFile < Source
|
118
|
+
extend NodePattern::Macros
|
119
|
+
|
120
|
+
GEMSPEC_EXTENSION = '.gemspec'
|
121
|
+
|
122
|
+
def_node_search :required_ruby_version, <<~PATTERN
|
123
|
+
(send _ :required_ruby_version= $_)
|
124
|
+
PATTERN
|
125
|
+
|
126
|
+
def name
|
127
|
+
"`required_ruby_version` parameter (in #{gemspec_filename})"
|
128
|
+
end
|
129
|
+
|
130
|
+
private
|
131
|
+
|
132
|
+
def find_version
|
133
|
+
file = gemspec_filepath
|
134
|
+
return unless file && File.file?(file)
|
135
|
+
|
136
|
+
version = version_from_gemspec_file(file)
|
137
|
+
return if version.nil?
|
138
|
+
|
139
|
+
if version.array_type?
|
140
|
+
versions = version.children.map { |v| version_from_str(v.str_content) }
|
141
|
+
return versions.compact.min
|
142
|
+
end
|
143
|
+
|
144
|
+
version_from_str(version.str_content)
|
145
|
+
end
|
146
|
+
|
147
|
+
def gemspec_filename
|
148
|
+
@gemspec_filename ||= begin
|
149
|
+
basename = Pathname.new(@config.base_dir_for_path_parameters).basename.to_s
|
150
|
+
"#{basename}#{GEMSPEC_EXTENSION}"
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
def gemspec_filepath
|
155
|
+
@gemspec_filepath ||=
|
156
|
+
@config.find_file_upwards(gemspec_filename, @config.base_dir_for_path_parameters)
|
157
|
+
end
|
158
|
+
|
159
|
+
def version_from_gemspec_file(file)
|
160
|
+
processed_source = ProcessedSource.from_file(file, DEFAULT_VERSION)
|
161
|
+
required_ruby_version(processed_source.ast).first
|
162
|
+
end
|
163
|
+
|
164
|
+
def version_from_str(str)
|
165
|
+
str.match(/^(?:>=|<=)?\s*(?<version>\d+(?:\.\d+)*)/) do |md|
|
166
|
+
md[:version].to_f
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
115
171
|
# If all else fails, a default version will be picked.
|
116
172
|
# @api private
|
117
173
|
class Default < Source
|
@@ -130,7 +186,7 @@ module RuboCop
|
|
130
186
|
KNOWN_RUBIES
|
131
187
|
end
|
132
188
|
|
133
|
-
SOURCES = [RuboCopConfig, RubyVersionFile, BundlerLockFile, Default].freeze
|
189
|
+
SOURCES = [RuboCopConfig, RubyVersionFile, BundlerLockFile, GemspecFile, Default].freeze
|
134
190
|
private_constant :SOURCES
|
135
191
|
|
136
192
|
def initialize(config)
|
data/lib/rubocop/version.rb
CHANGED
@@ -3,24 +3,74 @@
|
|
3
3
|
module RuboCop
|
4
4
|
# This module holds the RuboCop version information.
|
5
5
|
module Version
|
6
|
-
STRING = '
|
6
|
+
STRING = '1.3.0'
|
7
7
|
|
8
8
|
MSG = '%<version>s (using Parser %<parser_version>s, '\
|
9
9
|
'rubocop-ast %<rubocop_ast_version>s, ' \
|
10
10
|
'running on %<ruby_engine>s %<ruby_version>s %<ruby_platform>s)'
|
11
11
|
|
12
|
+
CANONICAL_FEATURE_NAMES = { 'Rspec' => 'RSpec' }.freeze
|
13
|
+
|
12
14
|
# @api private
|
13
|
-
def self.version(debug: false)
|
15
|
+
def self.version(debug: false, env: nil)
|
14
16
|
if debug
|
15
|
-
format(MSG, version: STRING, parser_version: Parser::VERSION,
|
16
|
-
|
17
|
-
|
18
|
-
|
17
|
+
verbose_version = format(MSG, version: STRING, parser_version: Parser::VERSION,
|
18
|
+
rubocop_ast_version: RuboCop::AST::Version::STRING,
|
19
|
+
ruby_engine: RUBY_ENGINE, ruby_version: RUBY_VERSION,
|
20
|
+
ruby_platform: RUBY_PLATFORM)
|
21
|
+
return verbose_version unless env
|
22
|
+
|
23
|
+
extension_versions = extension_versions(env)
|
24
|
+
return verbose_version if extension_versions.empty?
|
25
|
+
|
26
|
+
<<~VERSIONS
|
27
|
+
#{verbose_version}
|
28
|
+
#{extension_versions.join("\n")}
|
29
|
+
VERSIONS
|
19
30
|
else
|
20
31
|
STRING
|
21
32
|
end
|
22
33
|
end
|
23
34
|
|
35
|
+
# @api private
|
36
|
+
def self.extension_versions(env)
|
37
|
+
env.config_store.for_pwd.loaded_features.sort.map do |loaded_feature|
|
38
|
+
next unless (match = loaded_feature.match(/rubocop-(?<feature>.*)/))
|
39
|
+
|
40
|
+
feature = match[:feature]
|
41
|
+
begin
|
42
|
+
require "rubocop/#{feature}/version"
|
43
|
+
rescue LoadError
|
44
|
+
# Not worth mentioning libs that are not installed
|
45
|
+
else
|
46
|
+
next unless (feature_version = feature_version(feature))
|
47
|
+
|
48
|
+
" - #{loaded_feature} #{feature_version}"
|
49
|
+
end
|
50
|
+
end.compact
|
51
|
+
end
|
52
|
+
|
53
|
+
# Returns feature version in one of two ways:
|
54
|
+
#
|
55
|
+
# * Find by RuboCop core version style (e.g. rubocop-performance, rubocop-rspec)
|
56
|
+
# * Find by `bundle gem` version style (e.g. rubocop-rake)
|
57
|
+
#
|
58
|
+
# @api private
|
59
|
+
def self.feature_version(feature)
|
60
|
+
capitalized_feature = feature.capitalize
|
61
|
+
extension_name = CANONICAL_FEATURE_NAMES.fetch(capitalized_feature, capitalized_feature)
|
62
|
+
|
63
|
+
# Find by RuboCop core version style (e.g. rubocop-performance, rubocop-rspec)
|
64
|
+
RuboCop.const_get(extension_name)::Version::STRING
|
65
|
+
rescue NameError
|
66
|
+
begin
|
67
|
+
# Find by `bundle gem` version style (e.g. rubocop-rake, rubocop-packaging)
|
68
|
+
RuboCop.const_get(extension_name)::VERSION
|
69
|
+
rescue NameError
|
70
|
+
# noop
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
24
74
|
# @api private
|
25
75
|
def self.document_version
|
26
76
|
STRING.match('\d+\.\d+').to_s
|
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:
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-11-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: parallel
|
@@ -94,14 +94,14 @@ dependencies:
|
|
94
94
|
requirements:
|
95
95
|
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: 1.1.1
|
98
98
|
type: :runtime
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
104
|
+
version: 1.1.1
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: ruby-progressbar
|
107
107
|
requirement: !ruby/object:Gem::Requirement
|
@@ -347,14 +347,18 @@ files:
|
|
347
347
|
- lib/rubocop/cop/lint/deprecated_class_methods.rb
|
348
348
|
- lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb
|
349
349
|
- lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb
|
350
|
+
- lib/rubocop/cop/lint/duplicate_branch.rb
|
350
351
|
- lib/rubocop/cop/lint/duplicate_case_condition.rb
|
351
352
|
- lib/rubocop/cop/lint/duplicate_elsif_condition.rb
|
352
353
|
- lib/rubocop/cop/lint/duplicate_hash_key.rb
|
353
354
|
- lib/rubocop/cop/lint/duplicate_methods.rb
|
355
|
+
- lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb
|
354
356
|
- lib/rubocop/cop/lint/duplicate_require.rb
|
355
357
|
- lib/rubocop/cop/lint/duplicate_rescue_exception.rb
|
356
358
|
- lib/rubocop/cop/lint/each_with_object_argument.rb
|
357
359
|
- lib/rubocop/cop/lint/else_layout.rb
|
360
|
+
- lib/rubocop/cop/lint/empty_block.rb
|
361
|
+
- lib/rubocop/cop/lint/empty_class.rb
|
358
362
|
- lib/rubocop/cop/lint/empty_conditional_body.rb
|
359
363
|
- lib/rubocop/cop/lint/empty_ensure.rb
|
360
364
|
- lib/rubocop/cop/lint/empty_expression.rb
|
@@ -384,6 +388,7 @@ files:
|
|
384
388
|
- lib/rubocop/cop/lint/nested_method_definition.rb
|
385
389
|
- lib/rubocop/cop/lint/nested_percent_literal.rb
|
386
390
|
- lib/rubocop/cop/lint/next_without_accumulator.rb
|
391
|
+
- lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb
|
387
392
|
- lib/rubocop/cop/lint/non_deterministic_require_order.rb
|
388
393
|
- lib/rubocop/cop/lint/non_local_exit_from_iterator.rb
|
389
394
|
- lib/rubocop/cop/lint/number_conversion.rb
|
@@ -419,11 +424,13 @@ files:
|
|
419
424
|
- lib/rubocop/cop/lint/struct_new_override.rb
|
420
425
|
- lib/rubocop/cop/lint/suppressed_exception.rb
|
421
426
|
- lib/rubocop/cop/lint/syntax.rb
|
427
|
+
- lib/rubocop/cop/lint/to_enum_arguments.rb
|
422
428
|
- lib/rubocop/cop/lint/to_json.rb
|
423
429
|
- lib/rubocop/cop/lint/top_level_return_with_argument.rb
|
424
430
|
- lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb
|
425
431
|
- lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb
|
426
432
|
- lib/rubocop/cop/lint/unified_integer.rb
|
433
|
+
- lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb
|
427
434
|
- lib/rubocop/cop/lint/unreachable_code.rb
|
428
435
|
- lib/rubocop/cop/lint/unreachable_loop.rb
|
429
436
|
- lib/rubocop/cop/lint/unused_block_argument.rb
|
@@ -545,6 +552,7 @@ files:
|
|
545
552
|
- lib/rubocop/cop/style/accessor_grouping.rb
|
546
553
|
- lib/rubocop/cop/style/alias.rb
|
547
554
|
- lib/rubocop/cop/style/and_or.rb
|
555
|
+
- lib/rubocop/cop/style/arguments_forwarding.rb
|
548
556
|
- lib/rubocop/cop/style/array_coercion.rb
|
549
557
|
- lib/rubocop/cop/style/array_join.rb
|
550
558
|
- lib/rubocop/cop/style/ascii_comments.rb
|
@@ -564,6 +572,7 @@ files:
|
|
564
572
|
- lib/rubocop/cop/style/class_methods.rb
|
565
573
|
- lib/rubocop/cop/style/class_methods_definitions.rb
|
566
574
|
- lib/rubocop/cop/style/class_vars.rb
|
575
|
+
- lib/rubocop/cop/style/collection_compact.rb
|
567
576
|
- lib/rubocop/cop/style/collection_methods.rb
|
568
577
|
- lib/rubocop/cop/style/colon_method_call.rb
|
569
578
|
- lib/rubocop/cop/style/colon_method_definition.rb
|
@@ -578,6 +587,7 @@ files:
|
|
578
587
|
- lib/rubocop/cop/style/def_with_parentheses.rb
|
579
588
|
- lib/rubocop/cop/style/dir.rb
|
580
589
|
- lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb
|
590
|
+
- lib/rubocop/cop/style/document_dynamic_eval_definition.rb
|
581
591
|
- lib/rubocop/cop/style/documentation.rb
|
582
592
|
- lib/rubocop/cop/style/documentation_method.rb
|
583
593
|
- lib/rubocop/cop/style/double_cop_disable_directive.rb
|
@@ -647,6 +657,7 @@ files:
|
|
647
657
|
- lib/rubocop/cop/style/multiple_comparison.rb
|
648
658
|
- lib/rubocop/cop/style/mutable_constant.rb
|
649
659
|
- lib/rubocop/cop/style/negated_if.rb
|
660
|
+
- lib/rubocop/cop/style/negated_if_else_condition.rb
|
650
661
|
- lib/rubocop/cop/style/negated_unless.rb
|
651
662
|
- lib/rubocop/cop/style/negated_while.rb
|
652
663
|
- lib/rubocop/cop/style/nested_modifier.rb
|
@@ -654,6 +665,7 @@ files:
|
|
654
665
|
- lib/rubocop/cop/style/nested_ternary_operator.rb
|
655
666
|
- lib/rubocop/cop/style/next.rb
|
656
667
|
- lib/rubocop/cop/style/nil_comparison.rb
|
668
|
+
- lib/rubocop/cop/style/nil_lambda.rb
|
657
669
|
- lib/rubocop/cop/style/non_nil_check.rb
|
658
670
|
- lib/rubocop/cop/style/not.rb
|
659
671
|
- lib/rubocop/cop/style/numeric_literal_prefix.rb
|
@@ -709,6 +721,7 @@ files:
|
|
709
721
|
- lib/rubocop/cop/style/sole_nested_conditional.rb
|
710
722
|
- lib/rubocop/cop/style/special_global_vars.rb
|
711
723
|
- lib/rubocop/cop/style/stabby_lambda_parentheses.rb
|
724
|
+
- lib/rubocop/cop/style/static_class.rb
|
712
725
|
- lib/rubocop/cop/style/stderr_puts.rb
|
713
726
|
- lib/rubocop/cop/style/string_concatenation.rb
|
714
727
|
- lib/rubocop/cop/style/string_hash_keys.rb
|
@@ -717,6 +730,7 @@ files:
|
|
717
730
|
- lib/rubocop/cop/style/string_methods.rb
|
718
731
|
- lib/rubocop/cop/style/strip.rb
|
719
732
|
- lib/rubocop/cop/style/struct_inheritance.rb
|
733
|
+
- lib/rubocop/cop/style/swap_values.rb
|
720
734
|
- lib/rubocop/cop/style/symbol_array.rb
|
721
735
|
- lib/rubocop/cop/style/symbol_literal.rb
|
722
736
|
- lib/rubocop/cop/style/symbol_proc.rb
|
@@ -757,6 +771,7 @@ files:
|
|
757
771
|
- lib/rubocop/error.rb
|
758
772
|
- lib/rubocop/ext/processed_source.rb
|
759
773
|
- lib/rubocop/ext/regexp_node.rb
|
774
|
+
- lib/rubocop/ext/regexp_parser.rb
|
760
775
|
- lib/rubocop/file_finder.rb
|
761
776
|
- lib/rubocop/formatter/auto_gen_config_formatter.rb
|
762
777
|
- lib/rubocop/formatter/base_formatter.rb
|
@@ -767,6 +782,7 @@ files:
|
|
767
782
|
- lib/rubocop/formatter/file_list_formatter.rb
|
768
783
|
- lib/rubocop/formatter/formatter_set.rb
|
769
784
|
- lib/rubocop/formatter/fuubar_style_formatter.rb
|
785
|
+
- lib/rubocop/formatter/git_hub_actions_formatter.rb
|
770
786
|
- lib/rubocop/formatter/html_formatter.rb
|
771
787
|
- lib/rubocop/formatter/json_formatter.rb
|
772
788
|
- lib/rubocop/formatter/junit_formatter.rb
|
@@ -805,7 +821,7 @@ metadata:
|
|
805
821
|
homepage_uri: https://rubocop.org/
|
806
822
|
changelog_uri: https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md
|
807
823
|
source_code_uri: https://github.com/rubocop-hq/rubocop/
|
808
|
-
documentation_uri: https://docs.rubocop.org/rubocop/
|
824
|
+
documentation_uri: https://docs.rubocop.org/rubocop/1.3/
|
809
825
|
bug_tracker_uri: https://github.com/rubocop-hq/rubocop/issues
|
810
826
|
post_install_message:
|
811
827
|
rdoc_options: []
|