rubocop 1.6.1 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +4 -3
  4. data/config/default.yml +145 -19
  5. data/lib/rubocop.rb +16 -1
  6. data/lib/rubocop/cli/command/auto_genenerate_config.rb +5 -4
  7. data/lib/rubocop/comment_config.rb +6 -6
  8. data/lib/rubocop/config.rb +13 -7
  9. data/lib/rubocop/config_loader.rb +11 -14
  10. data/lib/rubocop/config_loader_resolver.rb +21 -4
  11. data/lib/rubocop/config_obsoletion.rb +5 -3
  12. data/lib/rubocop/config_store.rb +12 -1
  13. data/lib/rubocop/cop/base.rb +2 -1
  14. data/lib/rubocop/cop/exclude_limit.rb +26 -0
  15. data/lib/rubocop/cop/gemspec/required_ruby_version.rb +3 -2
  16. data/lib/rubocop/cop/generator.rb +1 -3
  17. data/lib/rubocop/cop/internal_affairs.rb +6 -1
  18. data/lib/rubocop/cop/internal_affairs/empty_line_between_expect_offense_and_correction.rb +68 -0
  19. data/lib/rubocop/cop/internal_affairs/example_description.rb +89 -0
  20. data/lib/rubocop/cop/internal_affairs/redundant_described_class_as_subject.rb +61 -0
  21. data/lib/rubocop/cop/internal_affairs/redundant_let_rubocop_config_new.rb +64 -0
  22. data/lib/rubocop/cop/internal_affairs/style_detected_api_use.rb +145 -0
  23. data/lib/rubocop/cop/layout/class_structure.rb +7 -2
  24. data/lib/rubocop/cop/layout/empty_line_between_defs.rb +56 -20
  25. data/lib/rubocop/cop/layout/first_argument_indentation.rb +16 -2
  26. data/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb +14 -0
  27. data/lib/rubocop/cop/layout/line_length.rb +2 -1
  28. data/lib/rubocop/cop/layout/multiline_operation_indentation.rb +2 -2
  29. data/lib/rubocop/cop/layout/rescue_ensure_alignment.rb +3 -10
  30. data/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb +1 -0
  31. data/lib/rubocop/cop/layout/space_before_block_braces.rb +2 -0
  32. data/lib/rubocop/cop/layout/space_before_brackets.rb +67 -0
  33. data/lib/rubocop/cop/layout/space_inside_block_braces.rb +13 -10
  34. data/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb +2 -2
  35. data/lib/rubocop/cop/lint/ambiguous_assignment.rb +59 -0
  36. data/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb +7 -2
  37. data/lib/rubocop/cop/lint/deprecated_constants.rb +80 -0
  38. data/lib/rubocop/cop/lint/duplicate_branch.rb +64 -2
  39. data/lib/rubocop/cop/lint/lambda_without_literal_block.rb +44 -0
  40. data/lib/rubocop/cop/lint/non_deterministic_require_order.rb +10 -6
  41. data/lib/rubocop/cop/lint/number_conversion.rb +41 -6
  42. data/lib/rubocop/cop/lint/numbered_parameter_assignment.rb +47 -0
  43. data/lib/rubocop/cop/lint/or_assignment_to_constant.rb +39 -0
  44. data/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb +2 -1
  45. data/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb +50 -0
  46. data/lib/rubocop/cop/lint/redundant_splat_expansion.rb +50 -17
  47. data/lib/rubocop/cop/lint/shadowed_exception.rb +1 -11
  48. data/lib/rubocop/cop/lint/symbol_conversion.rb +103 -0
  49. data/lib/rubocop/cop/lint/triple_quotes.rb +71 -0
  50. data/lib/rubocop/cop/lint/unreachable_loop.rb +17 -0
  51. data/lib/rubocop/cop/message_annotator.rb +4 -1
  52. data/lib/rubocop/cop/metrics/block_nesting.rb +2 -2
  53. data/lib/rubocop/cop/metrics/parameter_lists.rb +5 -2
  54. data/lib/rubocop/cop/metrics/utils/code_length_calculator.rb +1 -1
  55. data/lib/rubocop/cop/mixin/allowed_identifiers.rb +18 -0
  56. data/lib/rubocop/cop/mixin/check_line_breakable.rb +5 -0
  57. data/lib/rubocop/cop/mixin/code_length.rb +3 -1
  58. data/lib/rubocop/cop/mixin/comments_help.rb +1 -11
  59. data/lib/rubocop/cop/mixin/configurable_max.rb +1 -0
  60. data/lib/rubocop/cop/mixin/first_element_line_break.rb +1 -1
  61. data/lib/rubocop/cop/mixin/method_complexity.rb +3 -1
  62. data/lib/rubocop/cop/mixin/uncommunicative_name.rb +5 -1
  63. data/lib/rubocop/cop/naming/memoized_instance_variable_name.rb +59 -5
  64. data/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb +38 -5
  65. data/lib/rubocop/cop/naming/variable_name.rb +2 -0
  66. data/lib/rubocop/cop/naming/variable_number.rb +2 -9
  67. data/lib/rubocop/cop/registry.rb +10 -0
  68. data/lib/rubocop/cop/severity.rb +3 -3
  69. data/lib/rubocop/cop/style/access_modifier_declarations.rb +3 -1
  70. data/lib/rubocop/cop/style/ascii_comments.rb +1 -1
  71. data/lib/rubocop/cop/style/collection_methods.rb +14 -1
  72. data/lib/rubocop/cop/style/commented_keyword.rb +22 -5
  73. data/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb +49 -9
  74. data/lib/rubocop/cop/style/empty_literal.rb +6 -2
  75. data/lib/rubocop/cop/style/endless_method.rb +102 -0
  76. data/lib/rubocop/cop/style/eval_with_location.rb +63 -34
  77. data/lib/rubocop/cop/style/explicit_block_argument.rb +10 -0
  78. data/lib/rubocop/cop/style/float_division.rb +3 -0
  79. data/lib/rubocop/cop/style/for.rb +2 -0
  80. data/lib/rubocop/cop/style/format_string_token.rb +18 -2
  81. data/lib/rubocop/cop/style/hash_except.rb +95 -0
  82. data/lib/rubocop/cop/style/hash_like_case.rb +2 -1
  83. data/lib/rubocop/cop/style/if_inside_else.rb +22 -10
  84. data/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb +120 -0
  85. data/lib/rubocop/cop/style/keyword_parameters_order.rb +12 -2
  86. data/lib/rubocop/cop/style/lambda_call.rb +2 -1
  87. data/lib/rubocop/cop/style/method_call_with_args_parentheses.rb +7 -0
  88. data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +16 -6
  89. data/lib/rubocop/cop/style/method_def_parentheses.rb +7 -0
  90. data/lib/rubocop/cop/style/multiline_method_signature.rb +26 -1
  91. data/lib/rubocop/cop/style/multiline_when_then.rb +3 -1
  92. data/lib/rubocop/cop/style/mutable_constant.rb +13 -3
  93. data/lib/rubocop/cop/style/nested_parenthesized_calls.rb +4 -0
  94. data/lib/rubocop/cop/style/nil_comparison.rb +3 -0
  95. data/lib/rubocop/cop/style/non_nil_check.rb +23 -13
  96. data/lib/rubocop/cop/style/numeric_literals.rb +6 -9
  97. data/lib/rubocop/cop/style/numeric_predicate.rb +1 -1
  98. data/lib/rubocop/cop/style/raise_args.rb +5 -2
  99. data/lib/rubocop/cop/style/redundant_argument.rb +7 -1
  100. data/lib/rubocop/cop/style/redundant_freeze.rb +8 -4
  101. data/lib/rubocop/cop/style/redundant_return.rb +1 -1
  102. data/lib/rubocop/cop/style/single_line_methods.rb +36 -2
  103. data/lib/rubocop/cop/style/sole_nested_conditional.rb +29 -5
  104. data/lib/rubocop/cop/style/string_concatenation.rb +1 -1
  105. data/lib/rubocop/cop/style/symbol_proc.rb +5 -4
  106. data/lib/rubocop/cop/style/ternary_parentheses.rb +1 -1
  107. data/lib/rubocop/cop/style/while_until_modifier.rb +2 -4
  108. data/lib/rubocop/cop/util.rb +3 -1
  109. data/lib/rubocop/formatter/git_hub_actions_formatter.rb +1 -0
  110. data/lib/rubocop/formatter/simple_text_formatter.rb +2 -1
  111. data/lib/rubocop/magic_comment.rb +30 -1
  112. data/lib/rubocop/options.rb +10 -10
  113. data/lib/rubocop/rspec/cop_helper.rb +0 -4
  114. data/lib/rubocop/rspec/expect_offense.rb +37 -22
  115. data/lib/rubocop/runner.rb +17 -1
  116. data/lib/rubocop/target_finder.rb +4 -2
  117. data/lib/rubocop/target_ruby.rb +47 -11
  118. data/lib/rubocop/util.rb +16 -0
  119. data/lib/rubocop/version.rb +8 -2
  120. metadata +27 -7
@@ -323,11 +323,16 @@ module RuboCop
323
323
  Cop::Team.mobilize(mobilized_cop_classes(config), config, @options)
324
324
  end
325
325
 
326
- def mobilized_cop_classes(config)
326
+ def mobilized_cop_classes(config) # rubocop:disable Metrics/AbcSize
327
327
  @mobilized_cop_classes ||= {}.compare_by_identity
328
328
  @mobilized_cop_classes[config] ||= begin
329
329
  cop_classes = Cop::Registry.all
330
330
 
331
+ # `@options[:only]` and `@options[:except]` are not qualified until
332
+ # needed so that the Registry can be fully loaded, including any
333
+ # cops added by `require`s.
334
+ qualify_option_cop_names
335
+
331
336
  OptionsValidator.new(@options).validate_cop_options
332
337
 
333
338
  if @options[:only]
@@ -342,6 +347,16 @@ module RuboCop
342
347
  end
343
348
  end
344
349
 
350
+ def qualify_option_cop_names
351
+ %i[only except].each do |option|
352
+ next unless @options[option]
353
+
354
+ @options[option].map! do |cop_name|
355
+ Cop::Registry.qualified_cop_name(cop_name, "--#{option} option")
356
+ end
357
+ end
358
+ end
359
+
345
360
  def filter_cop_classes(cop_classes, config)
346
361
  # use only cops that link to a style guide if requested
347
362
  return unless style_guide_cops_only?(config)
@@ -375,6 +390,7 @@ module RuboCop
375
390
 
376
391
  def minimum_severity_to_fail
377
392
  @minimum_severity_to_fail ||= begin
393
+ # Unless given explicitly as `fail_level`, `:info` severity offenses do not fail
378
394
  name = @options[:fail_level] || :refactor
379
395
  RuboCop::Cop::Severity.new(name)
380
396
  end
@@ -58,7 +58,7 @@ module RuboCop
58
58
  base_dir = base_dir.gsub(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
59
59
  all_files = find_files(base_dir, File::FNM_DOTMATCH)
60
60
  # use file.include? for performance optimization
61
- hidden_files = all_files.select { |file| file.include?(HIDDEN_PATH_SUBSTRING) }
61
+ hidden_files = all_files.select { |file| file.include?(HIDDEN_PATH_SUBSTRING) }.sort
62
62
  base_dir_config = @config_store.for(base_dir)
63
63
 
64
64
  target_files = all_files.select do |file|
@@ -70,7 +70,9 @@ module RuboCop
70
70
 
71
71
  def to_inspect?(file, hidden_files, base_dir_config)
72
72
  return false if base_dir_config.file_to_exclude?(file)
73
- return true if !hidden_files.include?(file) && ruby_file?(file)
73
+ return true if !hidden_files.bsearch do |hidden_file|
74
+ file <=> hidden_file
75
+ end && ruby_file?(file)
74
76
 
75
77
  base_dir_config.file_to_include?(file)
76
78
  end
@@ -44,33 +44,61 @@ module RuboCop
44
44
  # The target ruby version may be found in a .ruby-version file.
45
45
  # @api private
46
46
  class RubyVersionFile < Source
47
- FILENAME = '.ruby-version'
47
+ RUBY_VERSION_FILENAME = '.ruby-version'
48
+ RUBY_VERSION_PATTERN = /\A(?:ruby-)?(?<version>\d+\.\d+)/.freeze
48
49
 
49
50
  def name
50
- "`#{FILENAME}`"
51
+ "`#{RUBY_VERSION_FILENAME}`"
51
52
  end
52
53
 
53
54
  private
54
55
 
56
+ def filename
57
+ RUBY_VERSION_FILENAME
58
+ end
59
+
60
+ def pattern
61
+ RUBY_VERSION_PATTERN
62
+ end
63
+
55
64
  def find_version
56
- file = ruby_version_file
65
+ file = version_file
57
66
  return unless file && File.file?(file)
58
67
 
59
- # rubocop:disable Lint/MixedRegexpCaptureTypes
60
- # `(ruby-)` is not a capture type.
61
- File.read(file).match(/\A(ruby-)?(?<version>\d+\.\d+)/) do |md|
62
- # rubocop:enable Lint/MixedRegexpCaptureTypes
68
+ File.read(file).match(pattern) do |md|
63
69
  md[:version].to_f
64
70
  end
65
71
  end
66
72
 
67
- def ruby_version_file
68
- @ruby_version_file ||=
69
- @config.find_file_upwards(FILENAME,
73
+ def version_file
74
+ @version_file ||=
75
+ @config.find_file_upwards(filename,
70
76
  @config.base_dir_for_path_parameters)
71
77
  end
72
78
  end
73
79
 
80
+ # The target ruby version may be found in a .tool-versions file, in a line
81
+ # starting with `ruby`.
82
+ # @api private
83
+ class ToolVersionsFile < RubyVersionFile
84
+ TOOL_VERSIONS_FILENAME = '.tool-versions'
85
+ TOOL_VERSIONS_PATTERN = /\Aruby (?:ruby-)?(?<version>\d+\.\d+)/.freeze
86
+
87
+ def name
88
+ "`#{TOOL_VERSIONS_FILENAME}`"
89
+ end
90
+
91
+ private
92
+
93
+ def filename
94
+ TOOL_VERSIONS_FILENAME
95
+ end
96
+
97
+ def pattern
98
+ TOOL_VERSIONS_PATTERN
99
+ end
100
+ end
101
+
74
102
  # The lock file of Bundler may identify the target ruby version.
75
103
  # @api private
76
104
  class BundlerLockFile < Source
@@ -194,7 +222,15 @@ module RuboCop
194
222
  KNOWN_RUBIES
195
223
  end
196
224
 
197
- SOURCES = [RuboCopConfig, RubyVersionFile, BundlerLockFile, GemspecFile, Default].freeze
225
+ SOURCES = [
226
+ RuboCopConfig,
227
+ RubyVersionFile,
228
+ ToolVersionsFile,
229
+ BundlerLockFile,
230
+ GemspecFile,
231
+ Default
232
+ ].freeze
233
+
198
234
  private_constant :SOURCES
199
235
 
200
236
  def initialize(config)
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RuboCop
4
+ # This module contains a collection of useful utility methods.
5
+ module Util
6
+ def self.silence_warnings
7
+ # Replaces Kernel::silence_warnings since it hides any warnings,
8
+ # including the RuboCop ones
9
+ old_verbose = $VERBOSE
10
+ $VERBOSE = nil
11
+ yield
12
+ ensure
13
+ $VERBOSE = old_verbose
14
+ end
15
+ end
16
+ end
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  # This module holds the RuboCop version information.
5
5
  module Version
6
- STRING = '1.6.1'
6
+ STRING = '1.9.1'
7
7
 
8
8
  MSG = '%<version>s (using Parser %<parser_version>s, '\
9
9
  'rubocop-ast %<rubocop_ast_version>s, ' \
@@ -34,7 +34,13 @@ module RuboCop
34
34
 
35
35
  # @api private
36
36
  def self.extension_versions(env)
37
- env.config_store.for_pwd.loaded_features.sort.map do |loaded_feature|
37
+ features = Util.silence_warnings do
38
+ # Suppress any config issues when loading the config (ie. deprecations,
39
+ # pending cops, etc.).
40
+ env.config_store.unvalidated.for_pwd.loaded_features.sort
41
+ end
42
+
43
+ features.map do |loaded_feature|
38
44
  next unless (match = loaded_feature.match(/rubocop-(?<feature>.*)/))
39
45
 
40
46
  feature = match[:feature]
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: 1.6.1
4
+ version: 1.9.1
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-12-10 00:00:00.000000000 Z
13
+ date: 2021-02-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: parallel
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - ">="
34
34
  - !ruby/object:Gem::Version
35
- version: 2.7.1.5
35
+ version: 3.0.0.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 2.7.1.5
42
+ version: 3.0.0.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rainbow
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -137,7 +137,7 @@ dependencies:
137
137
  version: 1.4.0
138
138
  - - "<"
139
139
  - !ruby/object:Gem::Version
140
- version: '2.0'
140
+ version: '3.0'
141
141
  type: :runtime
142
142
  prerelease: false
143
143
  version_requirements: !ruby/object:Gem::Requirement
@@ -147,7 +147,7 @@ dependencies:
147
147
  version: 1.4.0
148
148
  - - "<"
149
149
  - !ruby/object:Gem::Version
150
- version: '2.0'
150
+ version: '3.0'
151
151
  - !ruby/object:Gem::Dependency
152
152
  name: bundler
153
153
  requirement: !ruby/object:Gem::Requirement
@@ -242,6 +242,7 @@ files:
242
242
  - lib/rubocop/cop/correctors/string_literal_corrector.rb
243
243
  - lib/rubocop/cop/correctors/unused_arg_corrector.rb
244
244
  - lib/rubocop/cop/documentation.rb
245
+ - lib/rubocop/cop/exclude_limit.rb
245
246
  - lib/rubocop/cop/force.rb
246
247
  - lib/rubocop/cop/gemspec/duplicated_assignment.rb
247
248
  - lib/rubocop/cop/gemspec/ordered_dependencies.rb
@@ -252,12 +253,17 @@ files:
252
253
  - lib/rubocop/cop/generator/require_file_injector.rb
253
254
  - lib/rubocop/cop/ignored_node.rb
254
255
  - lib/rubocop/cop/internal_affairs.rb
256
+ - lib/rubocop/cop/internal_affairs/empty_line_between_expect_offense_and_correction.rb
257
+ - lib/rubocop/cop/internal_affairs/example_description.rb
255
258
  - lib/rubocop/cop/internal_affairs/method_name_equal.rb
256
259
  - lib/rubocop/cop/internal_affairs/node_destructuring.rb
257
260
  - lib/rubocop/cop/internal_affairs/node_type_predicate.rb
258
261
  - lib/rubocop/cop/internal_affairs/offense_location_keyword.rb
262
+ - lib/rubocop/cop/internal_affairs/redundant_described_class_as_subject.rb
263
+ - lib/rubocop/cop/internal_affairs/redundant_let_rubocop_config_new.rb
259
264
  - lib/rubocop/cop/internal_affairs/redundant_location_argument.rb
260
265
  - lib/rubocop/cop/internal_affairs/redundant_message_argument.rb
266
+ - lib/rubocop/cop/internal_affairs/style_detected_api_use.rb
261
267
  - lib/rubocop/cop/internal_affairs/useless_message_assertion.rb
262
268
  - lib/rubocop/cop/layout/access_modifier_indentation.rb
263
269
  - lib/rubocop/cop/layout/argument_alignment.rb
@@ -335,6 +341,7 @@ files:
335
341
  - lib/rubocop/cop/layout/space_around_method_call_operator.rb
336
342
  - lib/rubocop/cop/layout/space_around_operators.rb
337
343
  - lib/rubocop/cop/layout/space_before_block_braces.rb
344
+ - lib/rubocop/cop/layout/space_before_brackets.rb
338
345
  - lib/rubocop/cop/layout/space_before_comma.rb
339
346
  - lib/rubocop/cop/layout/space_before_comment.rb
340
347
  - lib/rubocop/cop/layout/space_before_first_arg.rb
@@ -353,6 +360,7 @@ files:
353
360
  - lib/rubocop/cop/layout/trailing_whitespace.rb
354
361
  - lib/rubocop/cop/legacy/corrections_proxy.rb
355
362
  - lib/rubocop/cop/legacy/corrector.rb
363
+ - lib/rubocop/cop/lint/ambiguous_assignment.rb
356
364
  - lib/rubocop/cop/lint/ambiguous_block_association.rb
357
365
  - lib/rubocop/cop/lint/ambiguous_operator.rb
358
366
  - lib/rubocop/cop/lint/ambiguous_regexp_literal.rb
@@ -365,6 +373,7 @@ files:
365
373
  - lib/rubocop/cop/lint/constant_resolution.rb
366
374
  - lib/rubocop/cop/lint/debugger.rb
367
375
  - lib/rubocop/cop/lint/deprecated_class_methods.rb
376
+ - lib/rubocop/cop/lint/deprecated_constants.rb
368
377
  - lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb
369
378
  - lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb
370
379
  - lib/rubocop/cop/lint/duplicate_branch.rb
@@ -398,6 +407,7 @@ files:
398
407
  - lib/rubocop/cop/lint/ineffective_access_modifier.rb
399
408
  - lib/rubocop/cop/lint/inherit_exception.rb
400
409
  - lib/rubocop/cop/lint/interpolation_check.rb
410
+ - lib/rubocop/cop/lint/lambda_without_literal_block.rb
401
411
  - lib/rubocop/cop/lint/literal_as_condition.rb
402
412
  - lib/rubocop/cop/lint/literal_in_interpolation.rb
403
413
  - lib/rubocop/cop/lint/loop.rb
@@ -412,6 +422,8 @@ files:
412
422
  - lib/rubocop/cop/lint/non_deterministic_require_order.rb
413
423
  - lib/rubocop/cop/lint/non_local_exit_from_iterator.rb
414
424
  - lib/rubocop/cop/lint/number_conversion.rb
425
+ - lib/rubocop/cop/lint/numbered_parameter_assignment.rb
426
+ - lib/rubocop/cop/lint/or_assignment_to_constant.rb
415
427
  - lib/rubocop/cop/lint/ordered_magic_comments.rb
416
428
  - lib/rubocop/cop/lint/out_of_range_regexp_ref.rb
417
429
  - lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb
@@ -421,6 +433,7 @@ files:
421
433
  - lib/rubocop/cop/lint/rand_one.rb
422
434
  - lib/rubocop/cop/lint/redundant_cop_disable_directive.rb
423
435
  - lib/rubocop/cop/lint/redundant_cop_enable_directive.rb
436
+ - lib/rubocop/cop/lint/redundant_dir_glob_sort.rb
424
437
  - lib/rubocop/cop/lint/redundant_require_statement.rb
425
438
  - lib/rubocop/cop/lint/redundant_safe_navigation.rb
426
439
  - lib/rubocop/cop/lint/redundant_splat_expansion.rb
@@ -443,11 +456,13 @@ files:
443
456
  - lib/rubocop/cop/lint/shadowing_outer_local_variable.rb
444
457
  - lib/rubocop/cop/lint/struct_new_override.rb
445
458
  - lib/rubocop/cop/lint/suppressed_exception.rb
459
+ - lib/rubocop/cop/lint/symbol_conversion.rb
446
460
  - lib/rubocop/cop/lint/syntax.rb
447
461
  - lib/rubocop/cop/lint/to_enum_arguments.rb
448
462
  - lib/rubocop/cop/lint/to_json.rb
449
463
  - lib/rubocop/cop/lint/top_level_return_with_argument.rb
450
464
  - lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb
465
+ - lib/rubocop/cop/lint/triple_quotes.rb
451
466
  - lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb
452
467
  - lib/rubocop/cop/lint/unexpected_block_arity.rb
453
468
  - lib/rubocop/cop/lint/unified_integer.rb
@@ -482,6 +497,7 @@ files:
482
497
  - lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb
483
498
  - lib/rubocop/cop/migration/department_name.rb
484
499
  - lib/rubocop/cop/mixin/alignment.rb
500
+ - lib/rubocop/cop/mixin/allowed_identifiers.rb
485
501
  - lib/rubocop/cop/mixin/allowed_methods.rb
486
502
  - lib/rubocop/cop/mixin/annotation_comment.rb
487
503
  - lib/rubocop/cop/mixin/array_min_size.rb
@@ -624,6 +640,7 @@ files:
624
640
  - lib/rubocop/cop/style/empty_method.rb
625
641
  - lib/rubocop/cop/style/encoding.rb
626
642
  - lib/rubocop/cop/style/end_block.rb
643
+ - lib/rubocop/cop/style/endless_method.rb
627
644
  - lib/rubocop/cop/style/eval_with_location.rb
628
645
  - lib/rubocop/cop/style/even_odd.rb
629
646
  - lib/rubocop/cop/style/expand_path_arguments.rb
@@ -639,6 +656,7 @@ files:
639
656
  - lib/rubocop/cop/style/guard_clause.rb
640
657
  - lib/rubocop/cop/style/hash_as_last_array_item.rb
641
658
  - lib/rubocop/cop/style/hash_each_methods.rb
659
+ - lib/rubocop/cop/style/hash_except.rb
642
660
  - lib/rubocop/cop/style/hash_like_case.rb
643
661
  - lib/rubocop/cop/style/hash_syntax.rb
644
662
  - lib/rubocop/cop/style/hash_transform_keys.rb
@@ -647,6 +665,7 @@ files:
647
665
  - lib/rubocop/cop/style/if_inside_else.rb
648
666
  - lib/rubocop/cop/style/if_unless_modifier.rb
649
667
  - lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb
668
+ - lib/rubocop/cop/style/if_with_boolean_literal_branches.rb
650
669
  - lib/rubocop/cop/style/if_with_semicolon.rb
651
670
  - lib/rubocop/cop/style/implicit_runtime_error.rb
652
671
  - lib/rubocop/cop/style/infinite_loop.rb
@@ -836,6 +855,7 @@ files:
836
855
  - lib/rubocop/string_interpreter.rb
837
856
  - lib/rubocop/target_finder.rb
838
857
  - lib/rubocop/target_ruby.rb
858
+ - lib/rubocop/util.rb
839
859
  - lib/rubocop/version.rb
840
860
  - lib/rubocop/warning.rb
841
861
  - lib/rubocop/yaml_duplication_checker.rb
@@ -846,7 +866,7 @@ metadata:
846
866
  homepage_uri: https://rubocop.org/
847
867
  changelog_uri: https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md
848
868
  source_code_uri: https://github.com/rubocop-hq/rubocop/
849
- documentation_uri: https://docs.rubocop.org/rubocop/1.6/
869
+ documentation_uri: https://docs.rubocop.org/rubocop/1.9/
850
870
  bug_tracker_uri: https://github.com/rubocop-hq/rubocop/issues
851
871
  post_install_message:
852
872
  rdoc_options: []