rubocop 0.48.1 → 0.49.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 +4 -3
- data/config/default.yml +397 -357
- data/config/disabled.yml +29 -29
- data/config/enabled.yml +366 -326
- data/lib/rubocop.rb +85 -70
- data/lib/rubocop/ast/builder.rb +4 -1
- data/lib/rubocop/ast/node.rb +2 -2
- data/lib/rubocop/ast/node/and_node.rb +1 -1
- data/lib/rubocop/ast/node/args_node.rb +24 -0
- data/lib/rubocop/ast/node/block_node.rb +107 -0
- data/lib/rubocop/ast/node/case_node.rb +1 -1
- data/lib/rubocop/ast/node/ensure_node.rb +1 -1
- data/lib/rubocop/ast/node/for_node.rb +1 -1
- data/lib/rubocop/ast/node/if_node.rb +1 -1
- data/lib/rubocop/ast/node/mixin/parameterized_node.rb +74 -0
- data/lib/rubocop/ast/node/or_node.rb +1 -1
- data/lib/rubocop/ast/node/pair_node.rb +1 -1
- data/lib/rubocop/ast/node/resbody_node.rb +1 -1
- data/lib/rubocop/ast/node/send_node.rb +36 -57
- data/lib/rubocop/ast/node/super_node.rb +42 -0
- data/lib/rubocop/ast/node/until_node.rb +1 -1
- data/lib/rubocop/ast/node/when_node.rb +1 -1
- data/lib/rubocop/ast/node/while_node.rb +1 -1
- data/lib/rubocop/cli.rb +10 -0
- data/lib/rubocop/config.rb +23 -7
- data/lib/rubocop/config_loader.rb +19 -3
- data/lib/rubocop/cop/badge.rb +1 -1
- data/lib/rubocop/cop/bundler/duplicated_gem.rb +2 -2
- data/lib/rubocop/cop/commissioner.rb +1 -1
- data/lib/rubocop/cop/cop.rb +10 -0
- data/lib/rubocop/cop/{style → layout}/access_modifier_indentation.rb +33 -3
- data/lib/rubocop/cop/{style → layout}/align_array.rb +16 -1
- data/lib/rubocop/cop/{style → layout}/align_hash.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/align_parameters.rb +29 -1
- data/lib/rubocop/cop/{style → layout}/block_end_newline.rb +10 -5
- data/lib/rubocop/cop/{style → layout}/case_indentation.rb +64 -1
- data/lib/rubocop/cop/{style → layout}/closing_parenthesis_indentation.rb +2 -2
- data/lib/rubocop/cop/{style → layout}/comment_indentation.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/dot_position.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/else_alignment.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/empty_line_after_magic_comment.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/empty_line_between_defs.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/empty_lines.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/empty_lines_around_access_modifier.rb +2 -7
- data/lib/rubocop/cop/{style → layout}/empty_lines_around_begin_body.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/empty_lines_around_block_body.rb +2 -4
- data/lib/rubocop/cop/{style → layout}/empty_lines_around_class_body.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/empty_lines_around_exception_handling_keywords.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/empty_lines_around_method_body.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/empty_lines_around_module_body.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/end_of_line.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/extra_spacing.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/first_array_element_line_break.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/first_hash_element_line_break.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/first_method_argument_line_break.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/first_method_parameter_line_break.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/first_parameter_indentation.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/indent_array.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/indent_assignment.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/indent_hash.rb +2 -2
- data/lib/rubocop/cop/{style → layout}/indent_heredoc.rb +3 -3
- data/lib/rubocop/cop/{style → layout}/indentation_consistency.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/indentation_width.rb +10 -12
- data/lib/rubocop/cop/{style → layout}/initial_indentation.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/leading_comment_space.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/multiline_array_brace_layout.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/multiline_assignment_layout.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/multiline_block_layout.rb +21 -36
- data/lib/rubocop/cop/{style → layout}/multiline_hash_brace_layout.rb +5 -1
- data/lib/rubocop/cop/{style → layout}/multiline_method_call_brace_layout.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/multiline_method_call_indentation.rb +3 -3
- data/lib/rubocop/cop/{style → layout}/multiline_method_definition_brace_layout.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/multiline_operation_indentation.rb +6 -5
- data/lib/rubocop/cop/{style → layout}/rescue_ensure_alignment.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_after_colon.rb +2 -2
- data/lib/rubocop/cop/{style → layout}/space_after_comma.rb +2 -2
- data/lib/rubocop/cop/{style → layout}/space_after_method_name.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_after_not.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_after_semicolon.rb +2 -2
- data/lib/rubocop/cop/{style → layout}/space_around_block_parameters.rb +7 -5
- data/lib/rubocop/cop/{style → layout}/space_around_equals_in_parameter_default.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_around_keyword.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_around_operators.rb +6 -2
- data/lib/rubocop/cop/{style → layout}/space_before_block_braces.rb +6 -2
- data/lib/rubocop/cop/{style → layout}/space_before_comma.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_before_comment.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_before_first_arg.rb +4 -2
- data/lib/rubocop/cop/{style → layout}/space_before_semicolon.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_in_lambda_literal.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_inside_array_percent_literal.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_inside_block_braces.rb +3 -4
- data/lib/rubocop/cop/{style → layout}/space_inside_brackets.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_inside_hash_literal_braces.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_inside_parens.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_inside_percent_literal_delimiters.rb +8 -7
- data/lib/rubocop/cop/{style → layout}/space_inside_range_literal.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/space_inside_string_interpolation.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/tab.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/trailing_blank_lines.rb +1 -1
- data/lib/rubocop/cop/{style → layout}/trailing_whitespace.rb +2 -2
- data/lib/rubocop/cop/lint/ambiguous_block_association.rb +1 -1
- data/lib/rubocop/cop/lint/ambiguous_operator.rb +4 -4
- data/lib/rubocop/cop/lint/debugger.rb +0 -15
- data/lib/rubocop/cop/lint/duplicate_methods.rb +2 -1
- data/lib/rubocop/cop/lint/rescue_type.rb +81 -0
- data/lib/rubocop/cop/lint/script_permission.rb +42 -0
- data/lib/rubocop/cop/lint/useless_access_modifier.rb +1 -1
- data/lib/rubocop/cop/message_annotator.rb +23 -13
- data/lib/rubocop/cop/metrics/block_length.rb +1 -1
- data/lib/rubocop/cop/mixin/array_min_size.rb +59 -0
- data/lib/rubocop/cop/mixin/configurable_enforced_style.rb +10 -11
- data/lib/rubocop/cop/mixin/def_node.rb +1 -1
- data/lib/rubocop/cop/mixin/empty_lines_around_body.rb +1 -1
- data/lib/rubocop/cop/mixin/enforce_superclass.rb +36 -0
- data/lib/rubocop/cop/mixin/hash_alignment.rb +1 -1
- data/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +7 -3
- data/lib/rubocop/cop/mixin/space_before_punctuation.rb +1 -1
- data/lib/rubocop/cop/performance/caller.rb +41 -0
- data/lib/rubocop/cop/performance/compare_with_block.rb +60 -14
- data/lib/rubocop/cop/performance/double_start_end_with.rb +2 -2
- data/lib/rubocop/cop/performance/redundant_merge.rb +2 -0
- data/lib/rubocop/cop/rails/action_filter.rb +1 -3
- data/lib/rubocop/cop/rails/application_job.rb +32 -0
- data/lib/rubocop/cop/rails/application_record.rb +32 -0
- data/lib/rubocop/cop/rails/blank.rb +9 -3
- data/lib/rubocop/cop/rails/output_safety.rb +59 -15
- data/lib/rubocop/cop/rails/present.rb +9 -3
- data/lib/rubocop/cop/rails/relative_date_constant.rb +35 -4
- data/lib/rubocop/cop/rails/reversible_migration.rb +82 -18
- data/lib/rubocop/cop/rails/save_bang.rb +7 -2
- data/lib/rubocop/cop/rails/skips_model_validations.rb +7 -0
- data/lib/rubocop/cop/registry.rb +4 -3
- data/lib/rubocop/cop/security/eval.rb +9 -3
- data/lib/rubocop/cop/style/and_or.rb +1 -1
- data/lib/rubocop/cop/style/block_delimiters.rb +11 -17
- data/lib/rubocop/cop/style/braces_around_hash_parameters.rb +1 -1
- data/lib/rubocop/cop/style/collection_methods.rb +1 -3
- data/lib/rubocop/cop/style/conditional_assignment.rb +1 -1
- data/lib/rubocop/cop/style/copyright.rb +2 -2
- data/lib/rubocop/cop/style/documentation_method.rb +1 -1
- data/lib/rubocop/cop/style/each_for_simple_loop.rb +2 -1
- data/lib/rubocop/cop/style/each_with_object.rb +10 -6
- data/lib/rubocop/cop/style/empty_case_condition.rb +2 -2
- data/lib/rubocop/cop/style/for.rb +4 -5
- data/lib/rubocop/cop/style/format_string.rb +49 -0
- data/lib/rubocop/cop/style/format_string_token.rb +141 -0
- data/lib/rubocop/cop/style/hash_syntax.rb +1 -1
- data/lib/rubocop/cop/style/identical_conditional_branches.rb +2 -2
- data/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +1 -1
- data/lib/rubocop/cop/style/inverse_methods.rb +10 -1
- data/lib/rubocop/cop/style/lambda.rb +9 -9
- data/lib/rubocop/cop/style/line_end_concatenation.rb +4 -0
- data/lib/rubocop/cop/style/method_call_with_args_parentheses.rb +3 -3
- data/lib/rubocop/cop/style/method_called_on_do_end_block.rb +1 -2
- data/lib/rubocop/cop/style/method_name.rb +8 -2
- data/lib/rubocop/cop/style/mixin_grouping.rb +41 -3
- data/lib/rubocop/cop/style/multiline_block_chain.rb +7 -11
- data/lib/rubocop/cop/style/multiple_comparison.rb +77 -0
- data/lib/rubocop/cop/style/next.rb +11 -22
- data/lib/rubocop/cop/style/parallel_assignment.rb +10 -19
- data/lib/rubocop/cop/style/percent_literal_delimiters.rb +2 -2
- data/lib/rubocop/cop/style/self_assignment.rb +4 -0
- data/lib/rubocop/cop/style/single_line_block_params.rb +23 -17
- data/lib/rubocop/cop/style/symbol_array.rb +24 -13
- data/lib/rubocop/cop/style/symbol_proc.rb +4 -0
- data/lib/rubocop/cop/style/ternary_parentheses.rb +1 -1
- data/lib/rubocop/cop/style/unneeded_interpolation.rb +4 -0
- data/lib/rubocop/cop/style/word_array.rb +33 -53
- data/lib/rubocop/cop/style/yoda_condition.rb +78 -0
- data/lib/rubocop/cop/team.rb +1 -14
- data/lib/rubocop/cop/util.rb +16 -0
- data/lib/rubocop/formatter/simple_text_formatter.rb +0 -11
- data/lib/rubocop/node_pattern.rb +52 -52
- data/lib/rubocop/options.rb +25 -0
- data/lib/rubocop/path_util.rb +17 -1
- data/lib/rubocop/result_cache.rb +8 -7
- data/lib/rubocop/rspec/expect_offense.rb +167 -0
- data/lib/rubocop/rspec/shared_examples.rb +0 -8
- data/lib/rubocop/rspec/support.rb +1 -0
- data/lib/rubocop/runner.rb +12 -2
- data/lib/rubocop/target_finder.rb +5 -0
- data/lib/rubocop/version.rb +1 -1
- metadata +101 -72
@@ -8,8 +8,10 @@ module RuboCop
|
|
8
8
|
.fcgi
|
9
9
|
.gemspec
|
10
10
|
.god
|
11
|
+
.jb
|
11
12
|
.jbuilder
|
12
13
|
.mspec
|
14
|
+
.opal
|
13
15
|
.pluginspec
|
14
16
|
.podspec
|
15
17
|
.rabl
|
@@ -35,6 +37,8 @@ module RuboCop
|
|
35
37
|
Berksfile
|
36
38
|
Brewfile
|
37
39
|
Buildfile
|
40
|
+
Capfile
|
41
|
+
Cheffile
|
38
42
|
Dangerfile
|
39
43
|
Deliverfile
|
40
44
|
Fastfile
|
@@ -47,6 +51,7 @@ module RuboCop
|
|
47
51
|
Rakefile
|
48
52
|
Snapfile
|
49
53
|
Thorfile
|
54
|
+
Vagabondfile
|
50
55
|
Vagrantfile
|
51
56
|
buildfile].freeze
|
52
57
|
|
data/lib/rubocop/version.rb
CHANGED
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: 0.
|
4
|
+
version: 0.49.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-05-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rainbow
|
@@ -100,6 +100,20 @@ dependencies:
|
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: 1.0.1
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: parallel
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.10'
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '1.10'
|
103
117
|
- !ruby/object:Gem::Dependency
|
104
118
|
name: bundler
|
105
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,7 +151,9 @@ files:
|
|
137
151
|
- lib/rubocop/ast/builder.rb
|
138
152
|
- lib/rubocop/ast/node.rb
|
139
153
|
- lib/rubocop/ast/node/and_node.rb
|
154
|
+
- lib/rubocop/ast/node/args_node.rb
|
140
155
|
- lib/rubocop/ast/node/array_node.rb
|
156
|
+
- lib/rubocop/ast/node/block_node.rb
|
141
157
|
- lib/rubocop/ast/node/case_node.rb
|
142
158
|
- lib/rubocop/ast/node/ensure_node.rb
|
143
159
|
- lib/rubocop/ast/node/for_node.rb
|
@@ -148,11 +164,13 @@ files:
|
|
148
164
|
- lib/rubocop/ast/node/mixin/conditional_node.rb
|
149
165
|
- lib/rubocop/ast/node/mixin/hash_element_node.rb
|
150
166
|
- lib/rubocop/ast/node/mixin/modifier_node.rb
|
167
|
+
- lib/rubocop/ast/node/mixin/parameterized_node.rb
|
151
168
|
- lib/rubocop/ast/node/mixin/predicate_operator_node.rb
|
152
169
|
- lib/rubocop/ast/node/or_node.rb
|
153
170
|
- lib/rubocop/ast/node/pair_node.rb
|
154
171
|
- lib/rubocop/ast/node/resbody_node.rb
|
155
172
|
- lib/rubocop/ast/node/send_node.rb
|
173
|
+
- lib/rubocop/ast/node/super_node.rb
|
156
174
|
- lib/rubocop/ast/node/until_node.rb
|
157
175
|
- lib/rubocop/ast/node/when_node.rb
|
158
176
|
- lib/rubocop/ast/node/while_node.rb
|
@@ -174,6 +192,76 @@ files:
|
|
174
192
|
- lib/rubocop/cop/corrector.rb
|
175
193
|
- lib/rubocop/cop/force.rb
|
176
194
|
- lib/rubocop/cop/ignored_node.rb
|
195
|
+
- lib/rubocop/cop/layout/access_modifier_indentation.rb
|
196
|
+
- lib/rubocop/cop/layout/align_array.rb
|
197
|
+
- lib/rubocop/cop/layout/align_hash.rb
|
198
|
+
- lib/rubocop/cop/layout/align_parameters.rb
|
199
|
+
- lib/rubocop/cop/layout/block_end_newline.rb
|
200
|
+
- lib/rubocop/cop/layout/case_indentation.rb
|
201
|
+
- lib/rubocop/cop/layout/closing_parenthesis_indentation.rb
|
202
|
+
- lib/rubocop/cop/layout/comment_indentation.rb
|
203
|
+
- lib/rubocop/cop/layout/dot_position.rb
|
204
|
+
- lib/rubocop/cop/layout/else_alignment.rb
|
205
|
+
- lib/rubocop/cop/layout/empty_line_after_magic_comment.rb
|
206
|
+
- lib/rubocop/cop/layout/empty_line_between_defs.rb
|
207
|
+
- lib/rubocop/cop/layout/empty_lines.rb
|
208
|
+
- lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb
|
209
|
+
- lib/rubocop/cop/layout/empty_lines_around_begin_body.rb
|
210
|
+
- lib/rubocop/cop/layout/empty_lines_around_block_body.rb
|
211
|
+
- lib/rubocop/cop/layout/empty_lines_around_class_body.rb
|
212
|
+
- lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb
|
213
|
+
- lib/rubocop/cop/layout/empty_lines_around_method_body.rb
|
214
|
+
- lib/rubocop/cop/layout/empty_lines_around_module_body.rb
|
215
|
+
- lib/rubocop/cop/layout/end_of_line.rb
|
216
|
+
- lib/rubocop/cop/layout/extra_spacing.rb
|
217
|
+
- lib/rubocop/cop/layout/first_array_element_line_break.rb
|
218
|
+
- lib/rubocop/cop/layout/first_hash_element_line_break.rb
|
219
|
+
- lib/rubocop/cop/layout/first_method_argument_line_break.rb
|
220
|
+
- lib/rubocop/cop/layout/first_method_parameter_line_break.rb
|
221
|
+
- lib/rubocop/cop/layout/first_parameter_indentation.rb
|
222
|
+
- lib/rubocop/cop/layout/indent_array.rb
|
223
|
+
- lib/rubocop/cop/layout/indent_assignment.rb
|
224
|
+
- lib/rubocop/cop/layout/indent_hash.rb
|
225
|
+
- lib/rubocop/cop/layout/indent_heredoc.rb
|
226
|
+
- lib/rubocop/cop/layout/indentation_consistency.rb
|
227
|
+
- lib/rubocop/cop/layout/indentation_width.rb
|
228
|
+
- lib/rubocop/cop/layout/initial_indentation.rb
|
229
|
+
- lib/rubocop/cop/layout/leading_comment_space.rb
|
230
|
+
- lib/rubocop/cop/layout/multiline_array_brace_layout.rb
|
231
|
+
- lib/rubocop/cop/layout/multiline_assignment_layout.rb
|
232
|
+
- lib/rubocop/cop/layout/multiline_block_layout.rb
|
233
|
+
- lib/rubocop/cop/layout/multiline_hash_brace_layout.rb
|
234
|
+
- lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb
|
235
|
+
- lib/rubocop/cop/layout/multiline_method_call_indentation.rb
|
236
|
+
- lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb
|
237
|
+
- lib/rubocop/cop/layout/multiline_operation_indentation.rb
|
238
|
+
- lib/rubocop/cop/layout/rescue_ensure_alignment.rb
|
239
|
+
- lib/rubocop/cop/layout/space_after_colon.rb
|
240
|
+
- lib/rubocop/cop/layout/space_after_comma.rb
|
241
|
+
- lib/rubocop/cop/layout/space_after_method_name.rb
|
242
|
+
- lib/rubocop/cop/layout/space_after_not.rb
|
243
|
+
- lib/rubocop/cop/layout/space_after_semicolon.rb
|
244
|
+
- lib/rubocop/cop/layout/space_around_block_parameters.rb
|
245
|
+
- lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb
|
246
|
+
- lib/rubocop/cop/layout/space_around_keyword.rb
|
247
|
+
- lib/rubocop/cop/layout/space_around_operators.rb
|
248
|
+
- lib/rubocop/cop/layout/space_before_block_braces.rb
|
249
|
+
- lib/rubocop/cop/layout/space_before_comma.rb
|
250
|
+
- lib/rubocop/cop/layout/space_before_comment.rb
|
251
|
+
- lib/rubocop/cop/layout/space_before_first_arg.rb
|
252
|
+
- lib/rubocop/cop/layout/space_before_semicolon.rb
|
253
|
+
- lib/rubocop/cop/layout/space_in_lambda_literal.rb
|
254
|
+
- lib/rubocop/cop/layout/space_inside_array_percent_literal.rb
|
255
|
+
- lib/rubocop/cop/layout/space_inside_block_braces.rb
|
256
|
+
- lib/rubocop/cop/layout/space_inside_brackets.rb
|
257
|
+
- lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb
|
258
|
+
- lib/rubocop/cop/layout/space_inside_parens.rb
|
259
|
+
- lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb
|
260
|
+
- lib/rubocop/cop/layout/space_inside_range_literal.rb
|
261
|
+
- lib/rubocop/cop/layout/space_inside_string_interpolation.rb
|
262
|
+
- lib/rubocop/cop/layout/tab.rb
|
263
|
+
- lib/rubocop/cop/layout/trailing_blank_lines.rb
|
264
|
+
- lib/rubocop/cop/layout/trailing_whitespace.rb
|
177
265
|
- lib/rubocop/cop/lint/ambiguous_block_association.rb
|
178
266
|
- lib/rubocop/cop/lint/ambiguous_operator.rb
|
179
267
|
- lib/rubocop/cop/lint/ambiguous_regexp_literal.rb
|
@@ -216,7 +304,9 @@ files:
|
|
216
304
|
- lib/rubocop/cop/lint/rand_one.rb
|
217
305
|
- lib/rubocop/cop/lint/require_parentheses.rb
|
218
306
|
- lib/rubocop/cop/lint/rescue_exception.rb
|
307
|
+
- lib/rubocop/cop/lint/rescue_type.rb
|
219
308
|
- lib/rubocop/cop/lint/safe_navigation_chain.rb
|
309
|
+
- lib/rubocop/cop/lint/script_permission.rb
|
220
310
|
- lib/rubocop/cop/lint/shadowed_exception.rb
|
221
311
|
- lib/rubocop/cop/lint/shadowing_outer_local_variable.rb
|
222
312
|
- lib/rubocop/cop/lint/string_conversion_in_interpolation.rb
|
@@ -248,6 +338,7 @@ files:
|
|
248
338
|
- lib/rubocop/cop/mixin/access_modifier_node.rb
|
249
339
|
- lib/rubocop/cop/mixin/annotation_comment.rb
|
250
340
|
- lib/rubocop/cop/mixin/array_hash_indentation.rb
|
341
|
+
- lib/rubocop/cop/mixin/array_min_size.rb
|
251
342
|
- lib/rubocop/cop/mixin/array_syntax.rb
|
252
343
|
- lib/rubocop/cop/mixin/autocorrect_alignment.rb
|
253
344
|
- lib/rubocop/cop/mixin/check_assignment.rb
|
@@ -263,6 +354,7 @@ files:
|
|
263
354
|
- lib/rubocop/cop/mixin/duplication.rb
|
264
355
|
- lib/rubocop/cop/mixin/empty_lines_around_body.rb
|
265
356
|
- lib/rubocop/cop/mixin/end_keyword_alignment.rb
|
357
|
+
- lib/rubocop/cop/mixin/enforce_superclass.rb
|
266
358
|
- lib/rubocop/cop/mixin/first_element_line_break.rb
|
267
359
|
- lib/rubocop/cop/mixin/frozen_string_literal.rb
|
268
360
|
- lib/rubocop/cop/mixin/hash_alignment.rb
|
@@ -297,6 +389,7 @@ files:
|
|
297
389
|
- lib/rubocop/cop/mixin/trailing_comma.rb
|
298
390
|
- lib/rubocop/cop/mixin/unused_argument.rb
|
299
391
|
- lib/rubocop/cop/offense.rb
|
392
|
+
- lib/rubocop/cop/performance/caller.rb
|
300
393
|
- lib/rubocop/cop/performance/case_when_splat.rb
|
301
394
|
- lib/rubocop/cop/performance/casecmp.rb
|
302
395
|
- lib/rubocop/cop/performance/compare_with_block.rb
|
@@ -322,6 +415,8 @@ files:
|
|
322
415
|
- lib/rubocop/cop/performance/times_map.rb
|
323
416
|
- lib/rubocop/cop/rails/action_filter.rb
|
324
417
|
- lib/rubocop/cop/rails/active_support_aliases.rb
|
418
|
+
- lib/rubocop/cop/rails/application_job.rb
|
419
|
+
- lib/rubocop/cop/rails/application_record.rb
|
325
420
|
- lib/rubocop/cop/rails/blank.rb
|
326
421
|
- lib/rubocop/cop/rails/date.rb
|
327
422
|
- lib/rubocop/cop/rails/delegate.rb
|
@@ -356,12 +451,8 @@ files:
|
|
356
451
|
- lib/rubocop/cop/security/marshal_load.rb
|
357
452
|
- lib/rubocop/cop/security/yaml_load.rb
|
358
453
|
- lib/rubocop/cop/severity.rb
|
359
|
-
- lib/rubocop/cop/style/access_modifier_indentation.rb
|
360
454
|
- lib/rubocop/cop/style/accessor_method_name.rb
|
361
455
|
- lib/rubocop/cop/style/alias.rb
|
362
|
-
- lib/rubocop/cop/style/align_array.rb
|
363
|
-
- lib/rubocop/cop/style/align_hash.rb
|
364
|
-
- lib/rubocop/cop/style/align_parameters.rb
|
365
456
|
- lib/rubocop/cop/style/and_or.rb
|
366
457
|
- lib/rubocop/cop/style/array_join.rb
|
367
458
|
- lib/rubocop/cop/style/ascii_comments.rb
|
@@ -372,61 +463,39 @@ files:
|
|
372
463
|
- lib/rubocop/cop/style/begin_block.rb
|
373
464
|
- lib/rubocop/cop/style/block_comments.rb
|
374
465
|
- lib/rubocop/cop/style/block_delimiters.rb
|
375
|
-
- lib/rubocop/cop/style/block_end_newline.rb
|
376
466
|
- lib/rubocop/cop/style/braces_around_hash_parameters.rb
|
377
467
|
- lib/rubocop/cop/style/case_equality.rb
|
378
|
-
- lib/rubocop/cop/style/case_indentation.rb
|
379
468
|
- lib/rubocop/cop/style/character_literal.rb
|
380
469
|
- lib/rubocop/cop/style/class_and_module_camel_case.rb
|
381
470
|
- lib/rubocop/cop/style/class_and_module_children.rb
|
382
471
|
- lib/rubocop/cop/style/class_check.rb
|
383
472
|
- lib/rubocop/cop/style/class_methods.rb
|
384
473
|
- lib/rubocop/cop/style/class_vars.rb
|
385
|
-
- lib/rubocop/cop/style/closing_parenthesis_indentation.rb
|
386
474
|
- lib/rubocop/cop/style/collection_methods.rb
|
387
475
|
- lib/rubocop/cop/style/colon_method_call.rb
|
388
476
|
- lib/rubocop/cop/style/command_literal.rb
|
389
477
|
- lib/rubocop/cop/style/comment_annotation.rb
|
390
|
-
- lib/rubocop/cop/style/comment_indentation.rb
|
391
478
|
- lib/rubocop/cop/style/conditional_assignment.rb
|
392
479
|
- lib/rubocop/cop/style/constant_name.rb
|
393
480
|
- lib/rubocop/cop/style/copyright.rb
|
394
481
|
- lib/rubocop/cop/style/def_with_parentheses.rb
|
395
482
|
- lib/rubocop/cop/style/documentation.rb
|
396
483
|
- lib/rubocop/cop/style/documentation_method.rb
|
397
|
-
- lib/rubocop/cop/style/dot_position.rb
|
398
484
|
- lib/rubocop/cop/style/double_negation.rb
|
399
485
|
- lib/rubocop/cop/style/each_for_simple_loop.rb
|
400
486
|
- lib/rubocop/cop/style/each_with_object.rb
|
401
|
-
- lib/rubocop/cop/style/else_alignment.rb
|
402
487
|
- lib/rubocop/cop/style/empty_case_condition.rb
|
403
488
|
- lib/rubocop/cop/style/empty_else.rb
|
404
|
-
- lib/rubocop/cop/style/empty_line_after_magic_comment.rb
|
405
|
-
- lib/rubocop/cop/style/empty_line_between_defs.rb
|
406
|
-
- lib/rubocop/cop/style/empty_lines.rb
|
407
|
-
- lib/rubocop/cop/style/empty_lines_around_access_modifier.rb
|
408
|
-
- lib/rubocop/cop/style/empty_lines_around_begin_body.rb
|
409
|
-
- lib/rubocop/cop/style/empty_lines_around_block_body.rb
|
410
|
-
- lib/rubocop/cop/style/empty_lines_around_class_body.rb
|
411
|
-
- lib/rubocop/cop/style/empty_lines_around_exception_handling_keywords.rb
|
412
|
-
- lib/rubocop/cop/style/empty_lines_around_method_body.rb
|
413
|
-
- lib/rubocop/cop/style/empty_lines_around_module_body.rb
|
414
489
|
- lib/rubocop/cop/style/empty_literal.rb
|
415
490
|
- lib/rubocop/cop/style/empty_method.rb
|
416
491
|
- lib/rubocop/cop/style/encoding.rb
|
417
492
|
- lib/rubocop/cop/style/end_block.rb
|
418
|
-
- lib/rubocop/cop/style/end_of_line.rb
|
419
493
|
- lib/rubocop/cop/style/even_odd.rb
|
420
|
-
- lib/rubocop/cop/style/extra_spacing.rb
|
421
494
|
- lib/rubocop/cop/style/file_name.rb
|
422
|
-
- lib/rubocop/cop/style/first_array_element_line_break.rb
|
423
|
-
- lib/rubocop/cop/style/first_hash_element_line_break.rb
|
424
|
-
- lib/rubocop/cop/style/first_method_argument_line_break.rb
|
425
|
-
- lib/rubocop/cop/style/first_method_parameter_line_break.rb
|
426
|
-
- lib/rubocop/cop/style/first_parameter_indentation.rb
|
427
495
|
- lib/rubocop/cop/style/flip_flop.rb
|
428
496
|
- lib/rubocop/cop/style/for.rb
|
429
497
|
- lib/rubocop/cop/style/format_string.rb
|
498
|
+
- lib/rubocop/cop/style/format_string_token.rb
|
430
499
|
- lib/rubocop/cop/style/frozen_string_literal_comment.rb
|
431
500
|
- lib/rubocop/cop/style/global_vars.rb
|
432
501
|
- lib/rubocop/cop/style/guard_clause.rb
|
@@ -437,19 +506,11 @@ files:
|
|
437
506
|
- lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb
|
438
507
|
- lib/rubocop/cop/style/if_with_semicolon.rb
|
439
508
|
- lib/rubocop/cop/style/implicit_runtime_error.rb
|
440
|
-
- lib/rubocop/cop/style/indent_array.rb
|
441
|
-
- lib/rubocop/cop/style/indent_assignment.rb
|
442
|
-
- lib/rubocop/cop/style/indent_hash.rb
|
443
|
-
- lib/rubocop/cop/style/indent_heredoc.rb
|
444
|
-
- lib/rubocop/cop/style/indentation_consistency.rb
|
445
|
-
- lib/rubocop/cop/style/indentation_width.rb
|
446
509
|
- lib/rubocop/cop/style/infinite_loop.rb
|
447
|
-
- lib/rubocop/cop/style/initial_indentation.rb
|
448
510
|
- lib/rubocop/cop/style/inline_comment.rb
|
449
511
|
- lib/rubocop/cop/style/inverse_methods.rb
|
450
512
|
- lib/rubocop/cop/style/lambda.rb
|
451
513
|
- lib/rubocop/cop/style/lambda_call.rb
|
452
|
-
- lib/rubocop/cop/style/leading_comment_space.rb
|
453
514
|
- lib/rubocop/cop/style/line_end_concatenation.rb
|
454
515
|
- lib/rubocop/cop/style/method_call_with_args_parentheses.rb
|
455
516
|
- lib/rubocop/cop/style/method_call_without_args_parentheses.rb
|
@@ -460,19 +521,12 @@ files:
|
|
460
521
|
- lib/rubocop/cop/style/missing_else.rb
|
461
522
|
- lib/rubocop/cop/style/mixin_grouping.rb
|
462
523
|
- lib/rubocop/cop/style/module_function.rb
|
463
|
-
- lib/rubocop/cop/style/multiline_array_brace_layout.rb
|
464
|
-
- lib/rubocop/cop/style/multiline_assignment_layout.rb
|
465
524
|
- lib/rubocop/cop/style/multiline_block_chain.rb
|
466
|
-
- lib/rubocop/cop/style/multiline_block_layout.rb
|
467
|
-
- lib/rubocop/cop/style/multiline_hash_brace_layout.rb
|
468
525
|
- lib/rubocop/cop/style/multiline_if_modifier.rb
|
469
526
|
- lib/rubocop/cop/style/multiline_if_then.rb
|
470
527
|
- lib/rubocop/cop/style/multiline_memoization.rb
|
471
|
-
- lib/rubocop/cop/style/multiline_method_call_brace_layout.rb
|
472
|
-
- lib/rubocop/cop/style/multiline_method_call_indentation.rb
|
473
|
-
- lib/rubocop/cop/style/multiline_method_definition_brace_layout.rb
|
474
|
-
- lib/rubocop/cop/style/multiline_operation_indentation.rb
|
475
528
|
- lib/rubocop/cop/style/multiline_ternary_operator.rb
|
529
|
+
- lib/rubocop/cop/style/multiple_comparison.rb
|
476
530
|
- lib/rubocop/cop/style/mutable_constant.rb
|
477
531
|
- lib/rubocop/cop/style/negated_if.rb
|
478
532
|
- lib/rubocop/cop/style/negated_while.rb
|
@@ -506,7 +560,6 @@ files:
|
|
506
560
|
- lib/rubocop/cop/style/redundant_return.rb
|
507
561
|
- lib/rubocop/cop/style/redundant_self.rb
|
508
562
|
- lib/rubocop/cop/style/regexp_literal.rb
|
509
|
-
- lib/rubocop/cop/style/rescue_ensure_alignment.rb
|
510
563
|
- lib/rubocop/cop/style/rescue_modifier.rb
|
511
564
|
- lib/rubocop/cop/style/safe_navigation.rb
|
512
565
|
- lib/rubocop/cop/style/self_assignment.rb
|
@@ -515,29 +568,6 @@ files:
|
|
515
568
|
- lib/rubocop/cop/style/signal_exception.rb
|
516
569
|
- lib/rubocop/cop/style/single_line_block_params.rb
|
517
570
|
- lib/rubocop/cop/style/single_line_methods.rb
|
518
|
-
- lib/rubocop/cop/style/space_after_colon.rb
|
519
|
-
- lib/rubocop/cop/style/space_after_comma.rb
|
520
|
-
- lib/rubocop/cop/style/space_after_method_name.rb
|
521
|
-
- lib/rubocop/cop/style/space_after_not.rb
|
522
|
-
- lib/rubocop/cop/style/space_after_semicolon.rb
|
523
|
-
- lib/rubocop/cop/style/space_around_block_parameters.rb
|
524
|
-
- lib/rubocop/cop/style/space_around_equals_in_parameter_default.rb
|
525
|
-
- lib/rubocop/cop/style/space_around_keyword.rb
|
526
|
-
- lib/rubocop/cop/style/space_around_operators.rb
|
527
|
-
- lib/rubocop/cop/style/space_before_block_braces.rb
|
528
|
-
- lib/rubocop/cop/style/space_before_comma.rb
|
529
|
-
- lib/rubocop/cop/style/space_before_comment.rb
|
530
|
-
- lib/rubocop/cop/style/space_before_first_arg.rb
|
531
|
-
- lib/rubocop/cop/style/space_before_semicolon.rb
|
532
|
-
- lib/rubocop/cop/style/space_in_lambda_literal.rb
|
533
|
-
- lib/rubocop/cop/style/space_inside_array_percent_literal.rb
|
534
|
-
- lib/rubocop/cop/style/space_inside_block_braces.rb
|
535
|
-
- lib/rubocop/cop/style/space_inside_brackets.rb
|
536
|
-
- lib/rubocop/cop/style/space_inside_hash_literal_braces.rb
|
537
|
-
- lib/rubocop/cop/style/space_inside_parens.rb
|
538
|
-
- lib/rubocop/cop/style/space_inside_percent_literal_delimiters.rb
|
539
|
-
- lib/rubocop/cop/style/space_inside_range_literal.rb
|
540
|
-
- lib/rubocop/cop/style/space_inside_string_interpolation.rb
|
541
571
|
- lib/rubocop/cop/style/special_global_vars.rb
|
542
572
|
- lib/rubocop/cop/style/stabby_lambda_parentheses.rb
|
543
573
|
- lib/rubocop/cop/style/string_literals.rb
|
@@ -547,13 +577,10 @@ files:
|
|
547
577
|
- lib/rubocop/cop/style/symbol_array.rb
|
548
578
|
- lib/rubocop/cop/style/symbol_literal.rb
|
549
579
|
- lib/rubocop/cop/style/symbol_proc.rb
|
550
|
-
- lib/rubocop/cop/style/tab.rb
|
551
580
|
- lib/rubocop/cop/style/ternary_parentheses.rb
|
552
|
-
- lib/rubocop/cop/style/trailing_blank_lines.rb
|
553
581
|
- lib/rubocop/cop/style/trailing_comma_in_arguments.rb
|
554
582
|
- lib/rubocop/cop/style/trailing_comma_in_literal.rb
|
555
583
|
- lib/rubocop/cop/style/trailing_underscore_variable.rb
|
556
|
-
- lib/rubocop/cop/style/trailing_whitespace.rb
|
557
584
|
- lib/rubocop/cop/style/trivial_accessors.rb
|
558
585
|
- lib/rubocop/cop/style/unless_else.rb
|
559
586
|
- lib/rubocop/cop/style/unneeded_capital_w.rb
|
@@ -566,6 +593,7 @@ files:
|
|
566
593
|
- lib/rubocop/cop/style/while_until_do.rb
|
567
594
|
- lib/rubocop/cop/style/while_until_modifier.rb
|
568
595
|
- lib/rubocop/cop/style/word_array.rb
|
596
|
+
- lib/rubocop/cop/style/yoda_condition.rb
|
569
597
|
- lib/rubocop/cop/style/zero_length_predicate.rb
|
570
598
|
- lib/rubocop/cop/team.rb
|
571
599
|
- lib/rubocop/cop/util.rb
|
@@ -605,6 +633,7 @@ files:
|
|
605
633
|
- lib/rubocop/remote_config.rb
|
606
634
|
- lib/rubocop/result_cache.rb
|
607
635
|
- lib/rubocop/rspec/cop_helper.rb
|
636
|
+
- lib/rubocop/rspec/expect_offense.rb
|
608
637
|
- lib/rubocop/rspec/host_environment_simulation_helper.rb
|
609
638
|
- lib/rubocop/rspec/shared_contexts.rb
|
610
639
|
- lib/rubocop/rspec/shared_examples.rb
|