rubocop 0.30.1 → 0.31.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rubocop might be problematic. Click here for more details.

Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/README.md +10 -0
  4. data/config/default.yml +8 -1
  5. data/config/enabled.yml +28 -0
  6. data/lib/rubocop.rb +7 -0
  7. data/lib/rubocop/cli.rb +3 -2
  8. data/lib/rubocop/config.rb +12 -18
  9. data/lib/rubocop/cop/autocorrect_logic.rb +1 -1
  10. data/lib/rubocop/cop/cop.rb +35 -23
  11. data/lib/rubocop/cop/lint/block_alignment.rb +1 -1
  12. data/lib/rubocop/cop/lint/def_end_alignment.rb +6 -0
  13. data/lib/rubocop/cop/lint/deprecated_class_methods.rb +1 -1
  14. data/lib/rubocop/cop/lint/each_with_object_argument.rb +29 -0
  15. data/lib/rubocop/cop/lint/end_alignment.rb +5 -0
  16. data/lib/rubocop/cop/lint/require_parentheses.rb +1 -1
  17. data/lib/rubocop/cop/lint/space_before_first_arg.rb +1 -1
  18. data/lib/rubocop/cop/lint/string_conversion_in_interpolation.rb +1 -1
  19. data/lib/rubocop/cop/metrics/class_length.rb +1 -25
  20. data/lib/rubocop/cop/metrics/module_length.rb +24 -0
  21. data/lib/rubocop/cop/metrics/parameter_lists.rb +1 -1
  22. data/lib/rubocop/cop/mixin/autocorrect_alignment.rb +2 -2
  23. data/lib/rubocop/cop/mixin/autocorrect_unless_changing_ast.rb +2 -2
  24. data/lib/rubocop/cop/mixin/classish_length.rb +37 -0
  25. data/lib/rubocop/cop/mixin/empty_lines_around_body.rb +1 -1
  26. data/lib/rubocop/cop/mixin/end_keyword_alignment.rb +14 -1
  27. data/lib/rubocop/cop/mixin/min_body_length.rb +19 -0
  28. data/lib/rubocop/cop/mixin/on_method_def.rb +1 -0
  29. data/lib/rubocop/cop/mixin/space_after_punctuation.rb +2 -4
  30. data/lib/rubocop/cop/mixin/space_before_punctuation.rb +1 -3
  31. data/lib/rubocop/cop/mixin/space_inside.rb +1 -1
  32. data/lib/rubocop/cop/mixin/statement_modifier.rb +14 -7
  33. data/lib/rubocop/cop/mixin/string_literals_help.rb +1 -1
  34. data/lib/rubocop/cop/mixin/unused_argument.rb +1 -3
  35. data/lib/rubocop/cop/performance/count.rb +84 -0
  36. data/lib/rubocop/cop/performance/detect.rb +1 -1
  37. data/lib/rubocop/cop/performance/flat_map.rb +2 -1
  38. data/lib/rubocop/cop/performance/parallel_assignment.rb +79 -0
  39. data/lib/rubocop/cop/performance/reverse_each.rb +1 -3
  40. data/lib/rubocop/cop/performance/sample.rb +25 -18
  41. data/lib/rubocop/cop/performance/size.rb +1 -3
  42. data/lib/rubocop/cop/rails/action_filter.rb +1 -1
  43. data/lib/rubocop/cop/rails/delegate.rb +2 -5
  44. data/lib/rubocop/cop/rails/find_by.rb +1 -1
  45. data/lib/rubocop/cop/rails/find_each.rb +1 -3
  46. data/lib/rubocop/cop/rails/read_write_attribute.rb +1 -3
  47. data/lib/rubocop/cop/rails/time_zone.rb +29 -7
  48. data/lib/rubocop/cop/style/alias.rb +1 -1
  49. data/lib/rubocop/cop/style/align_hash.rb +11 -14
  50. data/lib/rubocop/cop/style/array_join.rb +11 -0
  51. data/lib/rubocop/cop/style/attr.rb +1 -3
  52. data/lib/rubocop/cop/style/bare_percent_literals.rb +1 -1
  53. data/lib/rubocop/cop/style/block_comments.rb +1 -1
  54. data/lib/rubocop/cop/style/block_delimiters.rb +2 -9
  55. data/lib/rubocop/cop/style/block_end_newline.rb +1 -1
  56. data/lib/rubocop/cop/style/braces_around_hash_parameters.rb +1 -1
  57. data/lib/rubocop/cop/style/character_literal.rb +1 -1
  58. data/lib/rubocop/cop/style/class_check.rb +1 -1
  59. data/lib/rubocop/cop/style/class_methods.rb +1 -3
  60. data/lib/rubocop/cop/style/collection_methods.rb +1 -1
  61. data/lib/rubocop/cop/style/colon_method_call.rb +1 -3
  62. data/lib/rubocop/cop/style/command_literal.rb +2 -2
  63. data/lib/rubocop/cop/style/comment_annotation.rb +9 -2
  64. data/lib/rubocop/cop/style/copyright.rb +1 -1
  65. data/lib/rubocop/cop/style/def_with_parentheses.rb +1 -1
  66. data/lib/rubocop/cop/style/deprecated_hash_methods.rb +1 -1
  67. data/lib/rubocop/cop/style/dot_position.rb +1 -1
  68. data/lib/rubocop/cop/style/empty_line_between_defs.rb +1 -3
  69. data/lib/rubocop/cop/style/empty_lines.rb +1 -1
  70. data/lib/rubocop/cop/style/empty_lines_around_access_modifier.rb +1 -1
  71. data/lib/rubocop/cop/style/empty_literal.rb +2 -6
  72. data/lib/rubocop/cop/style/encoding.rb +1 -1
  73. data/lib/rubocop/cop/style/even_odd.rb +2 -4
  74. data/lib/rubocop/cop/style/extra_spacing.rb +1 -3
  75. data/lib/rubocop/cop/style/guard_clause.rb +1 -11
  76. data/lib/rubocop/cop/style/hash_syntax.rb +1 -1
  77. data/lib/rubocop/cop/style/if_unless_modifier.rb +11 -6
  78. data/lib/rubocop/cop/style/indentation_width.rb +11 -2
  79. data/lib/rubocop/cop/style/infinite_loop.rb +8 -8
  80. data/lib/rubocop/cop/style/lambda_call.rb +1 -1
  81. data/lib/rubocop/cop/style/leading_comment_space.rb +1 -3
  82. data/lib/rubocop/cop/style/line_end_concatenation.rb +5 -7
  83. data/lib/rubocop/cop/style/method_call_parentheses.rb +1 -8
  84. data/lib/rubocop/cop/style/method_def_parentheses.rb +1 -1
  85. data/lib/rubocop/cop/style/multiline_block_chain.rb +2 -1
  86. data/lib/rubocop/cop/style/multiline_block_layout.rb +11 -8
  87. data/lib/rubocop/cop/style/multiline_if_then.rb +1 -1
  88. data/lib/rubocop/cop/style/multiline_operation_indentation.rb +3 -2
  89. data/lib/rubocop/cop/style/multiline_ternary_operator.rb +2 -1
  90. data/lib/rubocop/cop/style/negated_if.rb +1 -1
  91. data/lib/rubocop/cop/style/negated_while.rb +2 -2
  92. data/lib/rubocop/cop/style/next.rb +1 -11
  93. data/lib/rubocop/cop/style/nil_comparison.rb +3 -5
  94. data/lib/rubocop/cop/style/non_nil_check.rb +2 -2
  95. data/lib/rubocop/cop/style/not.rb +3 -5
  96. data/lib/rubocop/cop/style/numeric_literals.rb +2 -5
  97. data/lib/rubocop/cop/style/parentheses_around_condition.rb +1 -1
  98. data/lib/rubocop/cop/style/percent_literal_delimiters.rb +1 -1
  99. data/lib/rubocop/cop/style/percent_q_literals.rb +1 -1
  100. data/lib/rubocop/cop/style/perl_backrefs.rb +1 -1
  101. data/lib/rubocop/cop/style/proc.rb +1 -3
  102. data/lib/rubocop/cop/style/redundant_begin.rb +1 -1
  103. data/lib/rubocop/cop/style/redundant_exception.rb +6 -8
  104. data/lib/rubocop/cop/style/redundant_return.rb +1 -1
  105. data/lib/rubocop/cop/style/redundant_self.rb +2 -2
  106. data/lib/rubocop/cop/style/regexp_literal.rb +2 -2
  107. data/lib/rubocop/cop/style/self_assignment.rb +1 -1
  108. data/lib/rubocop/cop/style/semicolon.rb +2 -2
  109. data/lib/rubocop/cop/style/signal_exception.rb +1 -1
  110. data/lib/rubocop/cop/style/single_line_methods.rb +1 -1
  111. data/lib/rubocop/cop/style/single_space_before_first_arg.rb +1 -1
  112. data/lib/rubocop/cop/style/space_after_colon.rb +1 -3
  113. data/lib/rubocop/cop/style/space_after_control_keyword.rb +1 -3
  114. data/lib/rubocop/cop/style/space_after_method_name.rb +1 -3
  115. data/lib/rubocop/cop/style/space_after_not.rb +1 -1
  116. data/lib/rubocop/cop/style/space_around_block_parameters.rb +34 -16
  117. data/lib/rubocop/cop/style/space_around_equals_in_parameter_default.rb +1 -3
  118. data/lib/rubocop/cop/style/space_around_operators.rb +3 -2
  119. data/lib/rubocop/cop/style/space_before_block_braces.rb +1 -1
  120. data/lib/rubocop/cop/style/space_before_comment.rb +1 -3
  121. data/lib/rubocop/cop/style/space_before_modifier_keyword.rb +1 -3
  122. data/lib/rubocop/cop/style/space_inside_block_braces.rb +5 -3
  123. data/lib/rubocop/cop/style/space_inside_hash_literal_braces.rb +1 -1
  124. data/lib/rubocop/cop/style/space_inside_range_literal.rb +1 -1
  125. data/lib/rubocop/cop/style/special_global_vars.rb +1 -1
  126. data/lib/rubocop/cop/style/symbol_literal.rb +1 -1
  127. data/lib/rubocop/cop/style/symbol_proc.rb +1 -1
  128. data/lib/rubocop/cop/style/tab.rb +1 -1
  129. data/lib/rubocop/cop/style/trailing_blank_lines.rb +2 -2
  130. data/lib/rubocop/cop/style/trailing_comma.rb +1 -1
  131. data/lib/rubocop/cop/style/trailing_underscore_variable.rb +72 -0
  132. data/lib/rubocop/cop/style/trailing_whitespace.rb +1 -1
  133. data/lib/rubocop/cop/style/trivial_accessors.rb +5 -10
  134. data/lib/rubocop/cop/style/unneeded_capital_w.rb +1 -1
  135. data/lib/rubocop/cop/style/unneeded_percent_q.rb +1 -1
  136. data/lib/rubocop/cop/style/variable_interpolation.rb +2 -4
  137. data/lib/rubocop/cop/style/when_then.rb +1 -3
  138. data/lib/rubocop/cop/style/while_until_do.rb +5 -7
  139. data/lib/rubocop/cop/style/while_until_modifier.rb +4 -6
  140. data/lib/rubocop/cop/style/word_array.rb +1 -1
  141. data/lib/rubocop/cop/util.rb +6 -3
  142. data/lib/rubocop/formatter/progress_formatter.rb +3 -2
  143. data/lib/rubocop/formatter/simple_text_formatter.rb +1 -1
  144. data/lib/rubocop/rake_task.rb +2 -2
  145. data/lib/rubocop/runner.rb +2 -11
  146. data/lib/rubocop/string_util.rb +4 -2
  147. data/lib/rubocop/token.rb +3 -1
  148. data/lib/rubocop/version.rb +1 -1
  149. data/relnotes/v0.31.0.md +120 -0
  150. metadata +10 -2
@@ -53,8 +53,8 @@ module RuboCop
53
53
 
54
54
  def full_options
55
55
  [].tap do |result|
56
- result.concat(formatters.flat_map { |f| ['--format', f] })
57
- result.concat(requires.flat_map { |r| ['--require', r] })
56
+ result.concat(formatters.map { |f| ['--format', f] }.flatten)
57
+ result.concat(requires.map { |r| ['--require', r] }.flatten)
58
58
  result.concat(options)
59
59
  result.concat(patterns)
60
60
  end
@@ -140,27 +140,18 @@ module RuboCop
140
140
 
141
141
  if @options[:only]
142
142
  cop_classes.select! do |c|
143
- cop_match?(c, @options[:only]) || @options[:lint] && c.lint?
143
+ c.match?(@options[:only]) || @options[:lint] && c.lint?
144
144
  end
145
145
  else
146
146
  filter_cop_classes(cop_classes, config)
147
147
  end
148
148
 
149
- cop_classes.reject! { |c| cop_match?(c, @options[:except]) }
149
+ cop_classes.reject! { |c| c.match?(@options[:except]) }
150
150
 
151
151
  cop_classes
152
152
  end
153
153
  end
154
154
 
155
- # Returns true if the cop name or the cop namespace matches any of the
156
- # given names.
157
- def cop_match?(cop, given_names)
158
- return false unless given_names
159
-
160
- given_names.include?(cop.cop_name) ||
161
- given_names.include?(cop.cop_type.to_s.capitalize)
162
- end
163
-
164
155
  def filter_cop_classes(cop_classes, config)
165
156
  # use only cops that link to a style guide if requested
166
157
  if style_guide_cops_only?(config)
@@ -20,9 +20,11 @@ module RuboCop
20
20
 
21
21
  def initialize(a, b)
22
22
  if a.size < b.size
23
- @shorter, @longer = a, b
23
+ @shorter = a
24
+ @longer = b
24
25
  else
25
- @shorter, @longer = b, a
26
+ @shorter = b
27
+ @longer = a
26
28
  end
27
29
  end
28
30
 
@@ -12,7 +12,9 @@ module RuboCop
12
12
  end
13
13
 
14
14
  def initialize(pos, type, text)
15
- @pos, @type, @text = pos, type, text
15
+ @pos = pos
16
+ @type = type
17
+ @text = text
16
18
  end
17
19
 
18
20
  def to_s
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  # This module holds the RuboCop version information.
5
5
  module Version
6
- STRING = '0.30.1'
6
+ STRING = '0.31.0'
7
7
 
8
8
  MSG = '%s (using Parser %s, running on %s %s %s)'
9
9
 
@@ -0,0 +1,120 @@
1
+ ### New features
2
+
3
+ * `Rails/TimeZone` emits acceptable methods on a violation when `EnforcedStyle` is `:acceptable`. ([@l8nite][])
4
+ * Recognize rackup file (config.ru) out of the box. ([@carhartl][])
5
+ * [#1788](https://github.com/bbatsov/rubocop/pull/1788): New cop `ModuleLength` checks for overly long module definitions. ([@sdeframond][])
6
+ * New cop `Performance/Count` to convert `Enumerable#select...size`, `Enumerable#reject...size`, `Enumerable#select...count`, `Enumerable#reject...count` `Enumerable#select...length`, and `Enumerable#reject...length` to `Enumerable#count`. ([@rrosenblum][])
7
+ * `CommentAnnotation` cop does auto-correction. ([@dylandavidson][])
8
+ * New cop `Style/TrailingUnderscoreVariable` to remove trailing underscore variables from mass assignment. ([@rrosenblum][])
9
+ * [#1136](https://github.com/bbatsov/rubocop/issues/1136): New cop `Performance/ParallelAssignment` to avoid usages of unnessary parallel assignment. ([@rrosenblum][])
10
+ * [#1278](https://github.com/bbatsov/rubocop/issues/1278): `DefEndAlignment` and `EndAlignment` cops do auto-correction. ([@lumeet][])
11
+ * `IndentationWidth` cop follows the `AlignWith` option of the `DefEndAlignment` cop. ([@lumeet][])
12
+ * [#1837](https://github.com/bbatsov/rubocop/issues/1837): New cop `EachWithObjectArgument` checks that `each_with_object` isn't called with an immutable object as argument. ([@jonas054][])
13
+ * `ArrayJoin` cop does auto-correction. ([@tmr08c][])
14
+
15
+ ### Bugs fixed
16
+
17
+ * [#1816](https://github.com/bbatsov/rubocop/issues/1816): Fix bug in `Sample` when calling `#shuffle` with something other than an element selector. ([@rrosenblum][])
18
+ * [#1768](https://github.com/bbatsov/rubocop/pull/1768): `DefEndAlignment` recognizes preceding `private_class_method` or `public_class_method` before `def`. ([@til][])
19
+ * [#1820](https://github.com/bbatsov/rubocop/issues/1820): Correct the logic in `AlignHash` for when to ignore a key because it's not on its own line. ([@jonas054][])
20
+ * [#1829](https://github.com/bbatsov/rubocop/pull/1829): Fix bug in `Sample` and `FlatMap` that would cause them to report having been auto-corrected when they were not. ([@rrosenblum][])
21
+ * [#1832](https://github.com/bbatsov/rubocop/pull/1832): Fix bug in `UnusedMethodArgument` that would cause them to report having been auto-corrected when they were not. ([@jonas054][])
22
+ * [#1834](https://github.com/bbatsov/rubocop/issues/1834): Support only boolean values for `AutoCorrect` configuration parameter, and remove warning for unknown parameter. ([@jonas054][])
23
+ * [#1843](https://github.com/bbatsov/rubocop/issues/1843): Fix crash in `TrailingBlankLines` when a file ends with a block comment without final newline. ([@jonas054][])
24
+ * [#1849](https://github.com/bbatsov/rubocop/issues/1849): Fix bug where you can not have nested arrays in the Rake task configuration. ([@rrosenblum][])
25
+ * Fix bug in `MultilineTernaryOperator` where it will not register an offense when only the false branch is on a separate line. ([@rrosenblum][])
26
+ * Fix crash in `MultilineBlockLayout` when using new lambda literal syntax without parentheses. ([@hbd225][])
27
+ * [#1859](https://github.com/bbatsov/rubocop/pull/1859): Fix bugs in `IfUnlessModifier` concerning comments and empty lines. ([@jonas054][])
28
+ * Fix handling of trailing comma in `SpaceAroundBlockParameters` and `SpaceAfterComma`. ([@lumeet][])
29
+
30
+ [@bbatsov]: https://github.com/bbatsov
31
+ [@jonas054]: https://github.com/jonas054
32
+ [@yujinakayama]: https://github.com/yujinakayama
33
+ [@dblock]: https://github.com/dblock
34
+ [@nevir]: https://github.com/nevir
35
+ [@daviddavis]: https://github.com/daviddavis
36
+ [@sds]: https://github.com/sds
37
+ [@fancyremarker]: https://github.com/fancyremarker
38
+ [@sinisterchipmunk]: https://github.com/sinisterchipmunk
39
+ [@vonTronje]: https://github.com/vonTronje
40
+ [@agrimm]: https://github.com/agrimm
41
+ [@pmenglund]: https://github.com/pmenglund
42
+ [@chulkilee]: https://github.com/chulkilee
43
+ [@codez]: https://github.com/codez
44
+ [@emou]: https://github.com/emou
45
+ [@skanev]: http://github.com/skanev
46
+ [@claco]: http://github.com/claco
47
+ [@rifraf]: http://github.com/rifraf
48
+ [@scottmatthewman]: https://github.com/scottmatthewman
49
+ [@ma2gedev]: http://github.com/ma2gedev
50
+ [@jeremyolliver]: https://github.com/jeremyolliver
51
+ [@hannestyden]: https://github.com/hannestyden
52
+ [@geniou]: https://github.com/geniou
53
+ [@jkogara]: https://github.com/jkogara
54
+ [@tmorris-fiksu]: https://github.com/tmorris-fiksu
55
+ [@mockdeep]: https://github.com/mockdeep
56
+ [@hiroponz]: https://github.com/hiroponz
57
+ [@tamird]: https://github.com/tamird
58
+ [@fshowalter]: https://github.com/fshowalter
59
+ [@cschramm]: https://github.com/cschramm
60
+ [@bquorning]: https://github.com/bquorning
61
+ [@bcobb]: https://github.com/bcobb
62
+ [@irrationalfab]: https://github.com/irrationalfab
63
+ [@tommeier]: https://github.com/tommeier
64
+ [@sfeldon]: https://github.com/sfeldon
65
+ [@biinari]: https://github.com/biinari
66
+ [@barunio]: https://github.com/barunio
67
+ [@molawson]: https://github.com/molawson
68
+ [@wndhydrnt]: https://github.com/wndhydrnt
69
+ [@ggilder]: https://github.com/ggilder
70
+ [@salbertson]: https://github.com/salbertson
71
+ [@camilleldn]: https://github.com/camilleldn
72
+ [@mcls]: https://github.com/mcls
73
+ [@yous]: https://github.com/yous
74
+ [@vrthra]: https://github.com/vrthra
75
+ [@SkuliOskarsson]: https://github.com/SkuliOskarsson
76
+ [@jspanjers]: https://github.com/jspanjers
77
+ [@sch1zo]: https://github.com/sch1zo
78
+ [@smangelsdorf]: https://github.com/smangelsdorf
79
+ [@mvz]: https://github.com/mvz
80
+ [@jfelchner]: https://github.com/jfelchner
81
+ [@janraasch]: https://github.com/janraasch
82
+ [@jcarbo]: https://github.com/jcarbo
83
+ [@oneamtu]: https://github.com/oneamtu
84
+ [@toy]: https://github.com/toy
85
+ [@Koronen]: https://github.com/Koronen
86
+ [@blainesch]: https://github.com/blainesch
87
+ [@marxarelli]: https://github.com/marxarelli
88
+ [@katieschilling]: https://github.com/katieschilling
89
+ [@kakutani]: https://github.com/kakutani
90
+ [@rrosenblum]: https://github.com/rrosenblum
91
+ [@mattjmcnaughton]: https://github.com/mattjmcnaughton
92
+ [@huerlisi]: https://github.com/huerlisi
93
+ [@volkert]: https://github.com/volkert
94
+ [@lumeet]: https://github.com/lumeet
95
+ [@mmozuras]: https://github.com/mmozuras
96
+ [@d4rk5eed]: https://github.com/d4rk5eed
97
+ [@cshaffer]: https://github.com/cshaffer
98
+ [@eitoball]: https://github.com/eitoball
99
+ [@iainbeeston]: https://github.com/iainbeeston
100
+ [@pimterry]: https://github.com/pimterry
101
+ [@palkan]: https://github.com/palkan
102
+ [@jdoconnor]: https://github.com/jdoconnor
103
+ [@meganemura]: https://github.com/meganemura
104
+ [@zvkemp]: https://github.com/zvkemp
105
+ [@vassilevsky]: https://github.com/vassilevsky
106
+ [@gerry3]: https://github.com/gerry3
107
+ [@ypresto]: https://github.com/ypresto
108
+ [@clowder]: https://github.com/clowder
109
+ [@mudge]: https://github.com/mudge
110
+ [@mzp]: https://github.com/mzp
111
+ [@bankair]: https://github.com/bankair
112
+ [@crimsonknave]: https://github.com/crimsonknave
113
+ [@renuo]: https://github.com/renuo
114
+ [@sdeframond]: https://github.com/sdeframond
115
+ [@til]: https://github.com/til
116
+ [@carhartl]: https://github.com/carhartl
117
+ [@dylandavidson]: https://github.com/dylandavidson
118
+ [@tmr08c]: https://github.com/tmr08c
119
+ [@hbd225]: https://github.com/hbd225
120
+ [@l8nite]: https://github.com/l8nite
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.30.1
4
+ version: 0.31.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: 2015-04-21 00:00:00.000000000 Z
13
+ date: 2015-05-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rainbow
@@ -207,6 +207,7 @@ files:
207
207
  - lib/rubocop/cop/lint/def_end_alignment.rb
208
208
  - lib/rubocop/cop/lint/deprecated_class_methods.rb
209
209
  - lib/rubocop/cop/lint/duplicate_methods.rb
210
+ - lib/rubocop/cop/lint/each_with_object_argument.rb
210
211
  - lib/rubocop/cop/lint/else_layout.rb
211
212
  - lib/rubocop/cop/lint/empty_ensure.rb
212
213
  - lib/rubocop/cop/lint/empty_interpolation.rb
@@ -243,6 +244,7 @@ files:
243
244
  - lib/rubocop/cop/metrics/cyclomatic_complexity.rb
244
245
  - lib/rubocop/cop/metrics/line_length.rb
245
246
  - lib/rubocop/cop/metrics/method_length.rb
247
+ - lib/rubocop/cop/metrics/module_length.rb
246
248
  - lib/rubocop/cop/metrics/parameter_lists.rb
247
249
  - lib/rubocop/cop/metrics/perceived_complexity.rb
248
250
  - lib/rubocop/cop/mixin/access_modifier_node.rb
@@ -251,6 +253,7 @@ files:
251
253
  - lib/rubocop/cop/mixin/autocorrect_alignment.rb
252
254
  - lib/rubocop/cop/mixin/autocorrect_unless_changing_ast.rb
253
255
  - lib/rubocop/cop/mixin/check_assignment.rb
256
+ - lib/rubocop/cop/mixin/classish_length.rb
254
257
  - lib/rubocop/cop/mixin/code_length.rb
255
258
  - lib/rubocop/cop/mixin/configurable_enforced_style.rb
256
259
  - lib/rubocop/cop/mixin/configurable_max.rb
@@ -259,6 +262,7 @@ files:
259
262
  - lib/rubocop/cop/mixin/end_keyword_alignment.rb
260
263
  - lib/rubocop/cop/mixin/if_node.rb
261
264
  - lib/rubocop/cop/mixin/method_complexity.rb
265
+ - lib/rubocop/cop/mixin/min_body_length.rb
262
266
  - lib/rubocop/cop/mixin/negative_conditional.rb
263
267
  - lib/rubocop/cop/mixin/on_method_def.rb
264
268
  - lib/rubocop/cop/mixin/on_normal_if_unless.rb
@@ -274,8 +278,10 @@ files:
274
278
  - lib/rubocop/cop/mixin/surrounding_space.rb
275
279
  - lib/rubocop/cop/mixin/unused_argument.rb
276
280
  - lib/rubocop/cop/offense.rb
281
+ - lib/rubocop/cop/performance/count.rb
277
282
  - lib/rubocop/cop/performance/detect.rb
278
283
  - lib/rubocop/cop/performance/flat_map.rb
284
+ - lib/rubocop/cop/performance/parallel_assignment.rb
279
285
  - lib/rubocop/cop/performance/reverse_each.rb
280
286
  - lib/rubocop/cop/performance/sample.rb
281
287
  - lib/rubocop/cop/performance/size.rb
@@ -436,6 +442,7 @@ files:
436
442
  - lib/rubocop/cop/style/tab.rb
437
443
  - lib/rubocop/cop/style/trailing_blank_lines.rb
438
444
  - lib/rubocop/cop/style/trailing_comma.rb
445
+ - lib/rubocop/cop/style/trailing_underscore_variable.rb
439
446
  - lib/rubocop/cop/style/trailing_whitespace.rb
440
447
  - lib/rubocop/cop/style/trivial_accessors.rb
441
448
  - lib/rubocop/cop/style/unless_else.rb
@@ -502,6 +509,7 @@ files:
502
509
  - relnotes/v0.29.1.md
503
510
  - relnotes/v0.30.0.md
504
511
  - relnotes/v0.30.1.md
512
+ - relnotes/v0.31.0.md
505
513
  - rubocop.gemspec
506
514
  homepage: http://github.com/bbatsov/rubocop
507
515
  licenses: