rubocop 0.9.1 → 0.10.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 (149) hide show
  1. data/.travis.yml +3 -1
  2. data/CHANGELOG.md +38 -0
  3. data/README.md +34 -0
  4. data/Rakefile +3 -0
  5. data/config/default.yml +14 -1
  6. data/config/enabled.yml +30 -7
  7. data/lib/rubocop.rb +15 -0
  8. data/lib/rubocop/cli.rb +48 -154
  9. data/lib/rubocop/config.rb +19 -22
  10. data/lib/rubocop/config_store.rb +2 -4
  11. data/lib/rubocop/cop/commissioner.rb +90 -0
  12. data/lib/rubocop/cop/cop.rb +38 -31
  13. data/lib/rubocop/cop/corrector.rb +84 -0
  14. data/lib/rubocop/cop/lint/assignment_in_condition.rb +0 -3
  15. data/lib/rubocop/cop/lint/block_alignment.rb +151 -0
  16. data/lib/rubocop/cop/lint/empty_ensure.rb +18 -0
  17. data/lib/rubocop/cop/lint/end_alignment.rb +0 -124
  18. data/lib/rubocop/cop/lint/end_in_method.rb +0 -2
  19. data/lib/rubocop/cop/lint/ensure_return.rb +3 -3
  20. data/lib/rubocop/cop/lint/eval.rb +0 -2
  21. data/lib/rubocop/cop/lint/handle_exceptions.rb +0 -2
  22. data/lib/rubocop/cop/lint/literal_in_condition.rb +0 -10
  23. data/lib/rubocop/cop/lint/loop.rb +0 -2
  24. data/lib/rubocop/cop/lint/rescue_exception.rb +0 -2
  25. data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +2 -2
  26. data/lib/rubocop/cop/lint/unreachable_code.rb +0 -2
  27. data/lib/rubocop/cop/lint/unused_local_variable.rb +2 -2
  28. data/lib/rubocop/cop/lint/void.rb +0 -2
  29. data/lib/rubocop/cop/offence.rb +9 -0
  30. data/lib/rubocop/cop/rails/validation.rb +2 -1
  31. data/lib/rubocop/cop/style/access_control.rb +4 -3
  32. data/lib/rubocop/cop/style/alias.rb +2 -4
  33. data/lib/rubocop/cop/style/align_parameters.rb +0 -2
  34. data/lib/rubocop/cop/style/and_or.rb +4 -6
  35. data/lib/rubocop/cop/style/ascii_comments.rb +2 -2
  36. data/lib/rubocop/cop/style/ascii_identifiers.rb +2 -2
  37. data/lib/rubocop/cop/style/attr.rb +0 -2
  38. data/lib/rubocop/cop/style/avoid_class_vars.rb +0 -1
  39. data/lib/rubocop/cop/style/avoid_for.rb +0 -2
  40. data/lib/rubocop/cop/style/avoid_global_vars.rb +3 -7
  41. data/lib/rubocop/cop/style/avoid_perl_backrefs.rb +0 -2
  42. data/lib/rubocop/cop/style/avoid_perlisms.rb +2 -4
  43. data/lib/rubocop/cop/style/begin_block.rb +0 -2
  44. data/lib/rubocop/cop/style/block_comments.rb +2 -2
  45. data/lib/rubocop/cop/style/block_nesting.rb +3 -3
  46. data/lib/rubocop/cop/style/blocks.rb +0 -2
  47. data/lib/rubocop/cop/style/case_equality.rb +0 -2
  48. data/lib/rubocop/cop/style/case_indentation.rb +0 -2
  49. data/lib/rubocop/cop/style/character_literal.rb +10 -6
  50. data/lib/rubocop/cop/style/class_and_module_camel_case.rb +0 -4
  51. data/lib/rubocop/cop/style/class_methods.rb +1 -1
  52. data/lib/rubocop/cop/style/collection_methods.rb +3 -5
  53. data/lib/rubocop/cop/style/colon_method_call.rb +3 -3
  54. data/lib/rubocop/cop/style/comment_annotation.rb +44 -0
  55. data/lib/rubocop/cop/style/constant_name.rb +0 -2
  56. data/lib/rubocop/cop/style/def_parentheses.rb +0 -8
  57. data/lib/rubocop/cop/style/documentation.rb +6 -2
  58. data/lib/rubocop/cop/style/dot_position.rb +0 -2
  59. data/lib/rubocop/cop/style/empty_line_between_defs.rb +0 -2
  60. data/lib/rubocop/cop/style/empty_lines.rb +10 -8
  61. data/lib/rubocop/cop/style/empty_literal.rb +3 -1
  62. data/lib/rubocop/cop/style/encoding.rb +7 -6
  63. data/lib/rubocop/cop/style/end_block.rb +0 -2
  64. data/lib/rubocop/cop/style/end_of_line.rb +4 -3
  65. data/lib/rubocop/cop/style/favor_join.rb +0 -2
  66. data/lib/rubocop/cop/style/favor_modifier.rb +9 -9
  67. data/lib/rubocop/cop/style/favor_sprintf.rb +0 -2
  68. data/lib/rubocop/cop/style/favor_unless_over_negated_if.rb +0 -2
  69. data/lib/rubocop/cop/style/hash_syntax.rb +0 -2
  70. data/lib/rubocop/cop/style/if_then_else.rb +0 -2
  71. data/lib/rubocop/cop/style/lambda.rb +0 -2
  72. data/lib/rubocop/cop/style/leading_comment_space.rb +2 -2
  73. data/lib/rubocop/cop/style/line_continuation.rb +4 -3
  74. data/lib/rubocop/cop/style/line_length.rb +4 -3
  75. data/lib/rubocop/cop/style/method_and_variable_snake_case.rb +4 -3
  76. data/lib/rubocop/cop/style/method_call_parentheses.rb +0 -2
  77. data/lib/rubocop/cop/style/method_length.rb +0 -4
  78. data/lib/rubocop/cop/style/not.rb +0 -2
  79. data/lib/rubocop/cop/style/op_method.rb +0 -2
  80. data/lib/rubocop/cop/style/parameter_lists.rb +0 -2
  81. data/lib/rubocop/cop/style/parentheses_around_condition.rb +12 -6
  82. data/lib/rubocop/cop/style/proc.rb +0 -2
  83. data/lib/rubocop/cop/style/reduce_arguments.rb +0 -2
  84. data/lib/rubocop/cop/style/redundant_begin.rb +45 -0
  85. data/lib/rubocop/cop/style/redundant_return.rb +59 -0
  86. data/lib/rubocop/cop/style/redundant_self.rb +83 -0
  87. data/lib/rubocop/cop/style/regexp_literal.rb +0 -2
  88. data/lib/rubocop/cop/style/rescue_modifier.rb +13 -21
  89. data/lib/rubocop/cop/style/semicolon.rb +15 -9
  90. data/lib/rubocop/cop/style/single_line_methods.rb +0 -4
  91. data/lib/rubocop/cop/style/space_after_comma_etc.rb +2 -2
  92. data/lib/rubocop/cop/style/space_after_control_keyword.rb +0 -1
  93. data/lib/rubocop/cop/style/string_literals.rb +5 -2
  94. data/lib/rubocop/cop/style/surrounding_space.rb +106 -91
  95. data/lib/rubocop/cop/style/tab.rb +4 -3
  96. data/lib/rubocop/cop/style/ternary_operator.rb +0 -4
  97. data/lib/rubocop/cop/style/trailing_whitespace.rb +4 -3
  98. data/lib/rubocop/cop/style/trivial_accessors.rb +51 -6
  99. data/lib/rubocop/cop/style/unless_else.rb +0 -2
  100. data/lib/rubocop/cop/style/variable_interpolation.rb +0 -2
  101. data/lib/rubocop/cop/style/when_then.rb +3 -3
  102. data/lib/rubocop/cop/style/while_until_do.rb +3 -5
  103. data/lib/rubocop/cop/style/word_array.rb +0 -2
  104. data/lib/rubocop/cop/util.rb +0 -4
  105. data/lib/rubocop/formatter/file_list_formatter.rb +18 -0
  106. data/lib/rubocop/formatter/formatter_set.rb +2 -1
  107. data/lib/rubocop/processed_source.rb +27 -0
  108. data/lib/rubocop/rake_task.rb +50 -0
  109. data/lib/rubocop/source_parser.rb +105 -0
  110. data/lib/rubocop/target_finder.rb +67 -0
  111. data/lib/rubocop/token.rb +22 -0
  112. data/lib/rubocop/version.rb +1 -1
  113. data/rubocop.gemspec +5 -3
  114. data/spec/project_spec.rb +0 -11
  115. data/spec/rubocop/cli_spec.rb +112 -6
  116. data/spec/rubocop/config_spec.rb +13 -17
  117. data/spec/rubocop/config_store_spec.rb +8 -23
  118. data/spec/rubocop/cops/commissioner_spec.rb +72 -0
  119. data/spec/rubocop/cops/corrector_spec.rb +63 -0
  120. data/spec/rubocop/cops/lint/assignment_in_condition_spec.rb +2 -2
  121. data/spec/rubocop/cops/lint/block_alignment_spec.rb +357 -0
  122. data/spec/rubocop/cops/lint/empty_ensure_spec.rb +33 -0
  123. data/spec/rubocop/cops/lint/end_alignment_spec.rb +0 -263
  124. data/spec/rubocop/cops/lint/ensure_return_spec.rb +6 -9
  125. data/spec/rubocop/cops/offence_spec.rb +28 -0
  126. data/spec/rubocop/cops/style/and_or_spec.rb +21 -11
  127. data/spec/rubocop/cops/style/ascii_identifiers_spec.rb +14 -0
  128. data/spec/rubocop/cops/style/avoid_global_vars_spec.rb +10 -14
  129. data/spec/rubocop/cops/style/character_literal_spec.rb +17 -2
  130. data/spec/rubocop/cops/style/colon_method_call_spec.rb +20 -15
  131. data/spec/rubocop/cops/style/comment_annotation_spec.rb +62 -0
  132. data/spec/rubocop/cops/style/encoding_spec.rb +7 -0
  133. data/spec/rubocop/cops/style/parentheses_around_condition_spec.rb +37 -9
  134. data/spec/rubocop/cops/style/redundant_begin_spec.rb +63 -0
  135. data/spec/rubocop/cops/style/redundant_return_spec.rb +64 -0
  136. data/spec/rubocop/cops/style/redundant_self_spec.rb +76 -0
  137. data/spec/rubocop/cops/style/string_literals_spec.rb +18 -13
  138. data/spec/rubocop/cops/style/trivial_accessors_spec.rb +110 -52
  139. data/spec/rubocop/cops/style/when_then_spec.rb +14 -7
  140. data/spec/rubocop/cops/style/while_until_do_spec.rb +12 -0
  141. data/spec/rubocop/cops/variable_inspector_spec.rb +3 -5
  142. data/spec/rubocop/formatter/file_list_formatter_spec.rb +33 -0
  143. data/spec/rubocop/processed_source_spec.rb +67 -0
  144. data/spec/rubocop/source_parser_spec.rb +141 -0
  145. data/spec/rubocop/target_finder_spec.rb +180 -0
  146. data/spec/rubocop/token_spec.rb +27 -0
  147. data/spec/spec_helper.rb +24 -4
  148. metadata +108 -18
  149. checksums.yaml +0 -7
@@ -0,0 +1,27 @@
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
4
+
5
+ module Rubocop
6
+ describe Token do
7
+ describe '.from_parser_token' do
8
+ subject(:token) { Token.from_parser_token(parser_token) }
9
+ let(:parser_token) { [type, [text, range]] }
10
+ let(:type) { :kDEF } # rubocop:disable SymbolName
11
+ let(:text) { 'def' }
12
+ let(:range) { double('range') }
13
+
14
+ it "sets parser token's type to rubocop token's type" do
15
+ expect(token.type).to eq(type)
16
+ end
17
+
18
+ it "sets parser token's text to rubocop token's text" do
19
+ expect(token.text).to eq(text)
20
+ end
21
+
22
+ it "sets parser token's range to rubocop token's pos" do
23
+ expect(token.pos).to eq(range)
24
+ end
25
+ end
26
+ end
27
+ end
@@ -75,10 +75,30 @@ RSpec.configure do |config|
75
75
  end
76
76
 
77
77
  def inspect_source(cop, source)
78
- ast, comments, tokens, src_buffer, _ = Rubocop::CLI.parse('(string)') do |sb|
79
- sb.source = source.join($RS)
80
- end
81
- cop.inspect(src_buffer, source, tokens, ast, comments)
78
+ processed_source = parse_source(source)
79
+ _investigate(cop, processed_source)
80
+ end
81
+
82
+ def parse_source(source)
83
+ source = source.join($RS) if source.is_a?(Array)
84
+ Rubocop::SourceParser.parse(source)
85
+ end
86
+
87
+ def autocorrect_source(cop, source)
88
+ cop.autocorrect = true
89
+ processed_source = parse_source(source)
90
+
91
+ _investigate(cop, processed_source)
92
+
93
+ corrector =
94
+ Rubocop::Cop::Corrector.new(processed_source.buffer, cop.corrections)
95
+ corrector.rewrite
96
+ end
97
+
98
+ def _investigate(cop, processed_source)
99
+ commissioner = Rubocop::Cop::Commissioner.new([cop], raise_error: true)
100
+ commissioner.investigate(processed_source)
101
+ commissioner
82
102
  end
83
103
 
84
104
  class Rubocop::Cop::Cop
metadata CHANGED
@@ -1,74 +1,116 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Bozhidar Batsov
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-07-05 00:00:00.000000000 Z
12
+ date: 2013-07-17 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rainbow
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 1.1.4
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 1.1.4
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: parser
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - '='
32
36
  - !ruby/object:Gem::Version
33
- version: 2.0.0.pre1
37
+ version: 2.0.0.pre2
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - '='
39
44
  - !ruby/object:Gem::Version
40
- version: 2.0.0.pre1
45
+ version: 2.0.0.pre2
46
+ - !ruby/object:Gem::Dependency
47
+ name: backports
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 3.3.3
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 3.3.3
62
+ - !ruby/object:Gem::Dependency
63
+ name: powerpack
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - '='
68
+ - !ruby/object:Gem::Version
69
+ version: 0.0.1
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - '='
76
+ - !ruby/object:Gem::Version
77
+ version: 0.0.1
41
78
  - !ruby/object:Gem::Dependency
42
79
  name: rake
43
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
44
82
  requirements:
45
83
  - - ~>
46
84
  - !ruby/object:Gem::Version
47
- version: '10.0'
85
+ version: '10.1'
48
86
  type: :development
49
87
  prerelease: false
50
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
51
90
  requirements:
52
91
  - - ~>
53
92
  - !ruby/object:Gem::Version
54
- version: '10.0'
93
+ version: '10.1'
55
94
  - !ruby/object:Gem::Dependency
56
95
  name: rspec
57
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
58
98
  requirements:
59
99
  - - ~>
60
100
  - !ruby/object:Gem::Version
61
- version: '2.13'
101
+ version: '2.14'
62
102
  type: :development
63
103
  prerelease: false
64
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
65
106
  requirements:
66
107
  - - ~>
67
108
  - !ruby/object:Gem::Version
68
- version: '2.13'
109
+ version: '2.14'
69
110
  - !ruby/object:Gem::Dependency
70
111
  name: yard
71
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
72
114
  requirements:
73
115
  - - ~>
74
116
  - !ruby/object:Gem::Version
@@ -76,6 +118,7 @@ dependencies:
76
118
  type: :development
77
119
  prerelease: false
78
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
79
122
  requirements:
80
123
  - - ~>
81
124
  - !ruby/object:Gem::Version
@@ -83,6 +126,7 @@ dependencies:
83
126
  - !ruby/object:Gem::Dependency
84
127
  name: bundler
85
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
86
130
  requirements:
87
131
  - - ~>
88
132
  - !ruby/object:Gem::Version
@@ -90,6 +134,7 @@ dependencies:
90
134
  type: :development
91
135
  prerelease: false
92
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
93
138
  requirements:
94
139
  - - ~>
95
140
  - !ruby/object:Gem::Version
@@ -97,6 +142,7 @@ dependencies:
97
142
  - !ruby/object:Gem::Dependency
98
143
  name: simplecov
99
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
100
146
  requirements:
101
147
  - - ~>
102
148
  - !ruby/object:Gem::Version
@@ -104,13 +150,13 @@ dependencies:
104
150
  type: :development
105
151
  prerelease: false
106
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
107
154
  requirements:
108
155
  - - ~>
109
156
  - !ruby/object:Gem::Version
110
157
  version: '0.7'
111
- description: |2
112
- Automatic Ruby code style checking tool.
113
- Aims to enforce the community-driven Ruby Style Guide.
158
+ description: ! " Automatic Ruby code style checking tool.\n Aims to enforce
159
+ the community-driven Ruby Style Guide.\n"
114
160
  email: bozhidar@batsov.com
115
161
  executables:
116
162
  - rubocop
@@ -138,8 +184,12 @@ files:
138
184
  - lib/rubocop/cli.rb
139
185
  - lib/rubocop/config.rb
140
186
  - lib/rubocop/config_store.rb
187
+ - lib/rubocop/cop/commissioner.rb
141
188
  - lib/rubocop/cop/cop.rb
189
+ - lib/rubocop/cop/corrector.rb
142
190
  - lib/rubocop/cop/lint/assignment_in_condition.rb
191
+ - lib/rubocop/cop/lint/block_alignment.rb
192
+ - lib/rubocop/cop/lint/empty_ensure.rb
143
193
  - lib/rubocop/cop/lint/end_alignment.rb
144
194
  - lib/rubocop/cop/lint/end_in_method.rb
145
195
  - lib/rubocop/cop/lint/ensure_return.rb
@@ -177,6 +227,7 @@ files:
177
227
  - lib/rubocop/cop/style/class_methods.rb
178
228
  - lib/rubocop/cop/style/collection_methods.rb
179
229
  - lib/rubocop/cop/style/colon_method_call.rb
230
+ - lib/rubocop/cop/style/comment_annotation.rb
180
231
  - lib/rubocop/cop/style/constant_name.rb
181
232
  - lib/rubocop/cop/style/def_parentheses.rb
182
233
  - lib/rubocop/cop/style/documentation.rb
@@ -210,6 +261,9 @@ files:
210
261
  - lib/rubocop/cop/style/parentheses_around_condition.rb
211
262
  - lib/rubocop/cop/style/proc.rb
212
263
  - lib/rubocop/cop/style/reduce_arguments.rb
264
+ - lib/rubocop/cop/style/redundant_begin.rb
265
+ - lib/rubocop/cop/style/redundant_return.rb
266
+ - lib/rubocop/cop/style/redundant_self.rb
213
267
  - lib/rubocop/cop/style/regexp_literal.rb
214
268
  - lib/rubocop/cop/style/rescue_modifier.rb
215
269
  - lib/rubocop/cop/style/semicolon.rb
@@ -234,10 +288,16 @@ files:
234
288
  - lib/rubocop/formatter/base_formatter.rb
235
289
  - lib/rubocop/formatter/clang_style_formatter.rb
236
290
  - lib/rubocop/formatter/emacs_style_formatter.rb
291
+ - lib/rubocop/formatter/file_list_formatter.rb
237
292
  - lib/rubocop/formatter/formatter_set.rb
238
293
  - lib/rubocop/formatter/json_formatter.rb
239
294
  - lib/rubocop/formatter/progress_formatter.rb
240
295
  - lib/rubocop/formatter/simple_text_formatter.rb
296
+ - lib/rubocop/processed_source.rb
297
+ - lib/rubocop/rake_task.rb
298
+ - lib/rubocop/source_parser.rb
299
+ - lib/rubocop/target_finder.rb
300
+ - lib/rubocop/token.rb
241
301
  - lib/rubocop/version.rb
242
302
  - rubocop.gemspec
243
303
  - spec/.rubocop.yml
@@ -245,8 +305,12 @@ files:
245
305
  - spec/rubocop/cli_spec.rb
246
306
  - spec/rubocop/config_spec.rb
247
307
  - spec/rubocop/config_store_spec.rb
308
+ - spec/rubocop/cops/commissioner_spec.rb
248
309
  - spec/rubocop/cops/cop_spec.rb
310
+ - spec/rubocop/cops/corrector_spec.rb
249
311
  - spec/rubocop/cops/lint/assignment_in_condition_spec.rb
312
+ - spec/rubocop/cops/lint/block_alignment_spec.rb
313
+ - spec/rubocop/cops/lint/empty_ensure_spec.rb
250
314
  - spec/rubocop/cops/lint/end_alignment_spec.rb
251
315
  - spec/rubocop/cops/lint/end_in_method_spec.rb
252
316
  - spec/rubocop/cops/lint/ensure_return_spec.rb
@@ -284,6 +348,7 @@ files:
284
348
  - spec/rubocop/cops/style/class_methods_spec.rb
285
349
  - spec/rubocop/cops/style/collection_methods_spec.rb
286
350
  - spec/rubocop/cops/style/colon_method_call_spec.rb
351
+ - spec/rubocop/cops/style/comment_annotation_spec.rb
287
352
  - spec/rubocop/cops/style/constant_name_spec.rb
288
353
  - spec/rubocop/cops/style/def_with_parentheses_spec.rb
289
354
  - spec/rubocop/cops/style/def_without_parentheses_spec.rb
@@ -318,6 +383,9 @@ files:
318
383
  - spec/rubocop/cops/style/parentheses_around_condition_spec.rb
319
384
  - spec/rubocop/cops/style/proc_spec.rb
320
385
  - spec/rubocop/cops/style/reduce_arguments_spec.rb
386
+ - spec/rubocop/cops/style/redundant_begin_spec.rb
387
+ - spec/rubocop/cops/style/redundant_return_spec.rb
388
+ - spec/rubocop/cops/style/redundant_self_spec.rb
321
389
  - spec/rubocop/cops/style/regexp_literal_spec.rb
322
390
  - spec/rubocop/cops/style/rescue_modifier_spec.rb
323
391
  - spec/rubocop/cops/style/semicolon_spec.rb
@@ -348,10 +416,15 @@ files:
348
416
  - spec/rubocop/formatter/base_formatter_spec.rb
349
417
  - spec/rubocop/formatter/clang_style_formatter_spec.rb
350
418
  - spec/rubocop/formatter/emacs_style_formatter_spec.rb
419
+ - spec/rubocop/formatter/file_list_formatter_spec.rb
351
420
  - spec/rubocop/formatter/formatter_set_spec.rb
352
421
  - spec/rubocop/formatter/json_formatter_spec.rb
353
422
  - spec/rubocop/formatter/progress_formatter_spec.rb
354
423
  - spec/rubocop/formatter/simple_text_formatter_spec.rb
424
+ - spec/rubocop/processed_source_spec.rb
425
+ - spec/rubocop/source_parser_spec.rb
426
+ - spec/rubocop/target_finder_spec.rb
427
+ - spec/rubocop/token_spec.rb
355
428
  - spec/spec_helper.rb
356
429
  - spec/support/file_helper.rb
357
430
  - spec/support/isolated_environment.rb
@@ -360,26 +433,30 @@ files:
360
433
  homepage: http://github.com/bbatsov/rubocop
361
434
  licenses:
362
435
  - MIT
363
- metadata: {}
364
436
  post_install_message:
365
437
  rdoc_options: []
366
438
  require_paths:
367
439
  - lib
368
440
  required_ruby_version: !ruby/object:Gem::Requirement
441
+ none: false
369
442
  requirements:
370
- - - '>='
443
+ - - ! '>='
371
444
  - !ruby/object:Gem::Version
372
445
  version: 1.9.2
373
446
  required_rubygems_version: !ruby/object:Gem::Requirement
447
+ none: false
374
448
  requirements:
375
- - - '>='
449
+ - - ! '>='
376
450
  - !ruby/object:Gem::Version
377
451
  version: '0'
452
+ segments:
453
+ - 0
454
+ hash: 1297865903551082262
378
455
  requirements: []
379
456
  rubyforge_project:
380
- rubygems_version: 2.0.3
457
+ rubygems_version: 1.8.23
381
458
  signing_key:
382
- specification_version: 4
459
+ specification_version: 3
383
460
  summary: Automatic Ruby code style checking tool.
384
461
  test_files:
385
462
  - spec/.rubocop.yml
@@ -387,8 +464,12 @@ test_files:
387
464
  - spec/rubocop/cli_spec.rb
388
465
  - spec/rubocop/config_spec.rb
389
466
  - spec/rubocop/config_store_spec.rb
467
+ - spec/rubocop/cops/commissioner_spec.rb
390
468
  - spec/rubocop/cops/cop_spec.rb
469
+ - spec/rubocop/cops/corrector_spec.rb
391
470
  - spec/rubocop/cops/lint/assignment_in_condition_spec.rb
471
+ - spec/rubocop/cops/lint/block_alignment_spec.rb
472
+ - spec/rubocop/cops/lint/empty_ensure_spec.rb
392
473
  - spec/rubocop/cops/lint/end_alignment_spec.rb
393
474
  - spec/rubocop/cops/lint/end_in_method_spec.rb
394
475
  - spec/rubocop/cops/lint/ensure_return_spec.rb
@@ -426,6 +507,7 @@ test_files:
426
507
  - spec/rubocop/cops/style/class_methods_spec.rb
427
508
  - spec/rubocop/cops/style/collection_methods_spec.rb
428
509
  - spec/rubocop/cops/style/colon_method_call_spec.rb
510
+ - spec/rubocop/cops/style/comment_annotation_spec.rb
429
511
  - spec/rubocop/cops/style/constant_name_spec.rb
430
512
  - spec/rubocop/cops/style/def_with_parentheses_spec.rb
431
513
  - spec/rubocop/cops/style/def_without_parentheses_spec.rb
@@ -460,6 +542,9 @@ test_files:
460
542
  - spec/rubocop/cops/style/parentheses_around_condition_spec.rb
461
543
  - spec/rubocop/cops/style/proc_spec.rb
462
544
  - spec/rubocop/cops/style/reduce_arguments_spec.rb
545
+ - spec/rubocop/cops/style/redundant_begin_spec.rb
546
+ - spec/rubocop/cops/style/redundant_return_spec.rb
547
+ - spec/rubocop/cops/style/redundant_self_spec.rb
463
548
  - spec/rubocop/cops/style/regexp_literal_spec.rb
464
549
  - spec/rubocop/cops/style/rescue_modifier_spec.rb
465
550
  - spec/rubocop/cops/style/semicolon_spec.rb
@@ -490,10 +575,15 @@ test_files:
490
575
  - spec/rubocop/formatter/base_formatter_spec.rb
491
576
  - spec/rubocop/formatter/clang_style_formatter_spec.rb
492
577
  - spec/rubocop/formatter/emacs_style_formatter_spec.rb
578
+ - spec/rubocop/formatter/file_list_formatter_spec.rb
493
579
  - spec/rubocop/formatter/formatter_set_spec.rb
494
580
  - spec/rubocop/formatter/json_formatter_spec.rb
495
581
  - spec/rubocop/formatter/progress_formatter_spec.rb
496
582
  - spec/rubocop/formatter/simple_text_formatter_spec.rb
583
+ - spec/rubocop/processed_source_spec.rb
584
+ - spec/rubocop/source_parser_spec.rb
585
+ - spec/rubocop/target_finder_spec.rb
586
+ - spec/rubocop/token_spec.rb
497
587
  - spec/spec_helper.rb
498
588
  - spec/support/file_helper.rb
499
589
  - spec/support/isolated_environment.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 2ad204405cb1d04fa810d54f45d8b01725f3fb1c
4
- data.tar.gz: 1240e7d221d6ae7e05ec4dc59bcc633afa96c3cc
5
- SHA512:
6
- metadata.gz: 1c8a7da40e56a46adb7a668379062a17fcf978a6df0d7c975b911e0aa1ff700ae38365aab8b1a0dbad0a70c2f2c05b461f5c49ca3c36ebc8825d04d654c90eb0
7
- data.tar.gz: a180b2850a1946a6fb9b693be6ebe04ae3930fad2b1d341bbb2791347a2c32872a21ca518c277331fc3136c0e483070ea70717f46fd5f54fb426cda27b6dd373