rubocop 0.3.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. data/.rubocop.yml +176 -0
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +60 -0
  4. data/CONTRIBUTING.md +13 -6
  5. data/Gemfile +1 -13
  6. data/README.md +131 -6
  7. data/Rakefile +1 -15
  8. data/bin/rubocop +2 -1
  9. data/lib/rubocop/cli.rb +133 -21
  10. data/lib/rubocop/cop/alias.rb +18 -0
  11. data/lib/rubocop/cop/align_parameters.rb +5 -4
  12. data/lib/rubocop/cop/array_literal.rb +22 -0
  13. data/lib/rubocop/cop/ascii_identifiers_and_comments.rb +18 -0
  14. data/lib/rubocop/cop/avoid_class_vars.rb +20 -0
  15. data/lib/rubocop/cop/avoid_for.rb +17 -0
  16. data/lib/rubocop/cop/avoid_perl_backrefs.rb +20 -0
  17. data/lib/rubocop/cop/avoid_perlisms.rb +46 -0
  18. data/lib/rubocop/cop/blocks.rb +1 -1
  19. data/lib/rubocop/cop/brace_after_percent.rb +28 -0
  20. data/lib/rubocop/cop/class_and_module_camel_case.rb +20 -0
  21. data/lib/rubocop/cop/collection_methods.rb +29 -0
  22. data/lib/rubocop/cop/cop.rb +16 -4
  23. data/lib/rubocop/cop/def_parentheses.rb +4 -1
  24. data/lib/rubocop/cop/encoding.rb +7 -5
  25. data/lib/rubocop/cop/end_of_line.rb +1 -3
  26. data/lib/rubocop/cop/ensure_return.rb +36 -0
  27. data/lib/rubocop/cop/favor_modifier.rb +82 -0
  28. data/lib/rubocop/cop/favor_percent_r.rb +19 -0
  29. data/lib/rubocop/cop/favor_sprintf.rb +37 -0
  30. data/lib/rubocop/cop/favor_unless_over_negated_if.rb +47 -0
  31. data/lib/rubocop/cop/grammar.rb +12 -8
  32. data/lib/rubocop/cop/handle_exceptions.rb +21 -0
  33. data/lib/rubocop/cop/hash_literal.rb +22 -0
  34. data/lib/rubocop/cop/indentation.rb +1 -1
  35. data/lib/rubocop/cop/line_length.rb +7 -3
  36. data/lib/rubocop/cop/method_and_variable_snake_case.rb +31 -0
  37. data/lib/rubocop/cop/method_length.rb +66 -0
  38. data/lib/rubocop/cop/new_lambda_literal.rb +17 -0
  39. data/lib/rubocop/cop/offence.rb +3 -1
  40. data/lib/rubocop/cop/op_method.rb +23 -0
  41. data/lib/rubocop/cop/parentheses_around_condition.rb +24 -0
  42. data/lib/rubocop/cop/percent_literals.rb +25 -0
  43. data/lib/rubocop/cop/percent_r.rb +19 -0
  44. data/lib/rubocop/cop/reduce_arguments.rb +67 -0
  45. data/lib/rubocop/cop/rescue_exception.rb +39 -0
  46. data/lib/rubocop/cop/rescue_modifier.rb +20 -0
  47. data/lib/rubocop/cop/semicolon.rb +18 -0
  48. data/lib/rubocop/cop/space_after_comma_etc.rb +2 -1
  49. data/lib/rubocop/cop/string_literals.rb +12 -0
  50. data/lib/rubocop/cop/surrounding_space.rb +48 -47
  51. data/lib/rubocop/cop/symbol_snake_case.rb +27 -0
  52. data/lib/rubocop/cop/syntax.rb +42 -0
  53. data/lib/rubocop/cop/tab.rb +1 -3
  54. data/lib/rubocop/cop/variable_interpolation.rb +20 -0
  55. data/lib/rubocop/cop/when_then.rb +3 -0
  56. data/lib/rubocop/report/emacs_style.rb +2 -2
  57. data/lib/rubocop/report/plain_text.rb +1 -1
  58. data/lib/rubocop/report/report.rb +5 -2
  59. data/lib/rubocop/version.rb +3 -1
  60. data/lib/rubocop.rb +37 -0
  61. data/rubocop.gemspec +36 -134
  62. data/spec/rubocop/cli_spec.rb +326 -48
  63. data/spec/rubocop/cops/alias_spec.rb +36 -0
  64. data/spec/rubocop/cops/align_parameters_spec.rb +43 -34
  65. data/spec/rubocop/cops/ampersands_pipes_vs_and_or_spec.rb +4 -4
  66. data/spec/rubocop/cops/array_literal_spec.rb +29 -0
  67. data/spec/rubocop/cops/ascii_identifiers_and_comments_spec.rb +38 -0
  68. data/spec/rubocop/cops/avoid_class_vars_spec.rb +20 -0
  69. data/spec/rubocop/cops/avoid_for_spec.rb +22 -0
  70. data/spec/rubocop/cops/avoid_perl_backrefs_spec.rb +18 -0
  71. data/spec/rubocop/cops/avoid_perlisms_spec.rb +44 -0
  72. data/spec/rubocop/cops/brace_after_percent_spec.rb +27 -0
  73. data/spec/rubocop/cops/class_and_module_camel_case_spec.rb +34 -0
  74. data/spec/rubocop/cops/collection_methods_spec.rb +39 -0
  75. data/spec/rubocop/cops/cop_spec.rb +5 -5
  76. data/spec/rubocop/cops/def_with_parentheses_spec.rb +5 -5
  77. data/spec/rubocop/cops/def_without_parentheses_spec.rb +4 -4
  78. data/spec/rubocop/cops/empty_lines_spec.rb +8 -8
  79. data/spec/rubocop/cops/encoding_spec.rb +17 -11
  80. data/spec/rubocop/cops/end_of_line_spec.rb +5 -5
  81. data/spec/rubocop/cops/ensure_return_spec.rb +37 -0
  82. data/spec/rubocop/cops/favor_modifier_spec.rb +112 -0
  83. data/spec/rubocop/cops/favor_percent_r.rb +29 -0
  84. data/spec/rubocop/cops/favor_sprintf_spec.rb +57 -0
  85. data/spec/rubocop/cops/favor_unless_over_negated_if_spec.rb +62 -0
  86. data/spec/rubocop/cops/favor_until_over_negated_while_spec.rb +45 -0
  87. data/spec/rubocop/cops/grammar_spec.rb +59 -44
  88. data/spec/rubocop/cops/handle_exceptions_spec.rb +36 -0
  89. data/spec/rubocop/cops/hash_literal_spec.rb +29 -0
  90. data/spec/rubocop/cops/hash_syntax_spec.rb +10 -10
  91. data/spec/rubocop/cops/if_with_semicolon_spec.rb +3 -3
  92. data/spec/rubocop/cops/indentation_spec.rb +7 -7
  93. data/spec/rubocop/cops/line_length_spec.rb +4 -4
  94. data/spec/rubocop/cops/method_and_variable_snake_case_spec.rb +47 -0
  95. data/spec/rubocop/cops/method_length_spec.rb +150 -0
  96. data/spec/rubocop/cops/multiline_blocks_spec.rb +4 -4
  97. data/spec/rubocop/cops/multiline_if_then_spec.rb +7 -7
  98. data/spec/rubocop/cops/new_lambda_literal_spec.rb +23 -0
  99. data/spec/rubocop/cops/numeric_literals_spec.rb +10 -10
  100. data/spec/rubocop/cops/offence_spec.rb +10 -4
  101. data/spec/rubocop/cops/one_line_conditional_spec.rb +2 -3
  102. data/spec/rubocop/cops/op_method_spec.rb +58 -0
  103. data/spec/rubocop/cops/parameter_lists_spec.rb +4 -4
  104. data/spec/rubocop/cops/parentheses_around_condition_spec.rb +64 -0
  105. data/spec/rubocop/cops/percent_literals_spec.rb +47 -0
  106. data/spec/rubocop/cops/percent_r_spec.rb +29 -0
  107. data/spec/rubocop/cops/reduce_arguments_spec.rb +57 -0
  108. data/spec/rubocop/cops/rescue_exception_spec.rb +73 -0
  109. data/spec/rubocop/cops/rescue_modifier.rb +40 -0
  110. data/spec/rubocop/cops/semicolon_spec.rb +29 -0
  111. data/spec/rubocop/cops/single_line_blocks_spec.rb +4 -4
  112. data/spec/rubocop/cops/space_after_colon_spec.rb +5 -5
  113. data/spec/rubocop/cops/space_after_comma_spec.rb +3 -3
  114. data/spec/rubocop/cops/space_after_semicolon_spec.rb +3 -3
  115. data/spec/rubocop/cops/space_around_braces_spec.rb +6 -6
  116. data/spec/rubocop/cops/space_around_equals_in_default_parameter_spec.rb +22 -0
  117. data/spec/rubocop/cops/space_around_operators_spec.rb +57 -25
  118. data/spec/rubocop/cops/space_inside_brackets_spec.rb +8 -8
  119. data/spec/rubocop/cops/space_inside_parens_spec.rb +4 -4
  120. data/spec/rubocop/cops/string_literals_spec.rb +9 -6
  121. data/spec/rubocop/cops/symbol_snake_case_spec.rb +74 -0
  122. data/spec/rubocop/cops/syntax_spec.rb +34 -0
  123. data/spec/rubocop/cops/tab_spec.rb +4 -4
  124. data/spec/rubocop/cops/ternary_operator_spec.rb +8 -8
  125. data/spec/rubocop/cops/trailing_whitespace_spec.rb +4 -4
  126. data/spec/rubocop/cops/unless_else_spec.rb +4 -4
  127. data/spec/rubocop/cops/variable_interpolation_spec.rb +45 -0
  128. data/spec/rubocop/cops/when_then_spec.rb +12 -5
  129. data/spec/rubocop/reports/emacs_style_spec.rb +3 -3
  130. data/spec/rubocop/reports/report_spec.rb +5 -5
  131. data/spec/spec_helper.rb +6 -0
  132. metadata +165 -36
  133. data/.rbenv-version +0 -1
  134. data/.rvmrc +0 -1
  135. data/Gemfile.lock +0 -39
  136. data/VERSION +0 -1
  137. data/features/rubocop.feature +0 -9
  138. data/features/step_definitions/rubocop_steps.rb +0 -1
  139. data/features/support/env.rb +0 -15
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.3.0
4
+ version: 0.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,32 +9,32 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-11 00:00:00.000000000 Z
12
+ date: 2013-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rake
15
+ name: term-ansicolor
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 10.0.0
22
- type: :development
21
+ version: '1.1'
22
+ type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 10.0.0
29
+ version: '1.1'
30
30
  - !ruby/object:Gem::Dependency
31
- name: rspec
31
+ name: rake
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 2.12.0
37
+ version: '10.0'
38
38
  type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,15 +42,15 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 2.12.0
45
+ version: '10.0'
46
46
  - !ruby/object:Gem::Dependency
47
- name: yard
47
+ name: rspec
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: 0.8.0
53
+ version: '2.13'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,15 +58,15 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 0.8.0
61
+ version: '2.13'
62
62
  - !ruby/object:Gem::Dependency
63
- name: bundler
63
+ name: yard
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: 1.2.0
69
+ version: '0.8'
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,15 +74,15 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: 1.2.0
77
+ version: '0.8'
78
78
  - !ruby/object:Gem::Dependency
79
- name: jeweler
79
+ name: bundler
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
83
  - - ~>
84
84
  - !ruby/object:Gem::Version
85
- version: 1.8.3
85
+ version: '1.3'
86
86
  type: :development
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,23 +90,23 @@ dependencies:
90
90
  requirements:
91
91
  - - ~>
92
92
  - !ruby/object:Gem::Version
93
- version: 1.8.3
93
+ version: '1.3'
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: simplecov
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
- - - ! '>='
99
+ - - ~>
100
100
  - !ruby/object:Gem::Version
101
- version: '0'
101
+ version: '0.7'
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
- - - ! '>='
107
+ - - ~>
108
108
  - !ruby/object:Gem::Version
109
- version: '0'
109
+ version: '0.7'
110
110
  description: Automatic Ruby code style checking tool. Aims to enforce the community-driven
111
111
  Ruby Style Guide.
112
112
  email: bozhidar@batsov.com
@@ -118,86 +118,144 @@ extra_rdoc_files:
118
118
  - README.md
119
119
  files:
120
120
  - .document
121
- - .rbenv-version
122
121
  - .rspec
123
122
  - .rubocop.yml
124
- - .rvmrc
125
123
  - .travis.yml
124
+ - CHANGELOG.md
126
125
  - CONTRIBUTING.md
127
126
  - Gemfile
128
- - Gemfile.lock
129
127
  - LICENSE.txt
130
128
  - README.md
131
129
  - Rakefile
132
- - VERSION
133
130
  - bin/rubocop
134
- - features/rubocop.feature
135
- - features/step_definitions/rubocop_steps.rb
136
- - features/support/env.rb
137
- - lib/rubocop.rb
131
+ - rubocop.gemspec
138
132
  - lib/rubocop/cli.rb
133
+ - lib/rubocop/cop/alias.rb
139
134
  - lib/rubocop/cop/align_parameters.rb
140
135
  - lib/rubocop/cop/ampersands_pipes_vs_and_or.rb
136
+ - lib/rubocop/cop/array_literal.rb
137
+ - lib/rubocop/cop/ascii_identifiers_and_comments.rb
138
+ - lib/rubocop/cop/avoid_class_vars.rb
139
+ - lib/rubocop/cop/avoid_for.rb
140
+ - lib/rubocop/cop/avoid_perl_backrefs.rb
141
+ - lib/rubocop/cop/avoid_perlisms.rb
141
142
  - lib/rubocop/cop/blocks.rb
143
+ - lib/rubocop/cop/brace_after_percent.rb
144
+ - lib/rubocop/cop/class_and_module_camel_case.rb
145
+ - lib/rubocop/cop/collection_methods.rb
142
146
  - lib/rubocop/cop/cop.rb
143
147
  - lib/rubocop/cop/def_parentheses.rb
144
148
  - lib/rubocop/cop/empty_lines.rb
145
149
  - lib/rubocop/cop/encoding.rb
146
150
  - lib/rubocop/cop/end_of_line.rb
151
+ - lib/rubocop/cop/ensure_return.rb
152
+ - lib/rubocop/cop/favor_modifier.rb
153
+ - lib/rubocop/cop/favor_percent_r.rb
154
+ - lib/rubocop/cop/favor_sprintf.rb
155
+ - lib/rubocop/cop/favor_unless_over_negated_if.rb
147
156
  - lib/rubocop/cop/grammar.rb
157
+ - lib/rubocop/cop/handle_exceptions.rb
158
+ - lib/rubocop/cop/hash_literal.rb
148
159
  - lib/rubocop/cop/hash_syntax.rb
149
160
  - lib/rubocop/cop/if_then_else.rb
150
161
  - lib/rubocop/cop/indentation.rb
151
162
  - lib/rubocop/cop/line_length.rb
163
+ - lib/rubocop/cop/method_and_variable_snake_case.rb
164
+ - lib/rubocop/cop/method_length.rb
165
+ - lib/rubocop/cop/new_lambda_literal.rb
152
166
  - lib/rubocop/cop/numeric_literals.rb
153
167
  - lib/rubocop/cop/offence.rb
168
+ - lib/rubocop/cop/op_method.rb
154
169
  - lib/rubocop/cop/parameter_lists.rb
170
+ - lib/rubocop/cop/parentheses_around_condition.rb
171
+ - lib/rubocop/cop/percent_literals.rb
172
+ - lib/rubocop/cop/percent_r.rb
173
+ - lib/rubocop/cop/reduce_arguments.rb
174
+ - lib/rubocop/cop/rescue_exception.rb
175
+ - lib/rubocop/cop/rescue_modifier.rb
176
+ - lib/rubocop/cop/semicolon.rb
155
177
  - lib/rubocop/cop/space_after_comma_etc.rb
156
178
  - lib/rubocop/cop/string_literals.rb
157
179
  - lib/rubocop/cop/surrounding_space.rb
180
+ - lib/rubocop/cop/symbol_snake_case.rb
181
+ - lib/rubocop/cop/syntax.rb
158
182
  - lib/rubocop/cop/tab.rb
159
183
  - lib/rubocop/cop/ternary_operator.rb
160
184
  - lib/rubocop/cop/trailing_whitespace.rb
161
185
  - lib/rubocop/cop/unless_else.rb
186
+ - lib/rubocop/cop/variable_interpolation.rb
162
187
  - lib/rubocop/cop/when_then.rb
163
188
  - lib/rubocop/report/emacs_style.rb
164
189
  - lib/rubocop/report/plain_text.rb
165
190
  - lib/rubocop/report/report.rb
166
191
  - lib/rubocop/version.rb
167
- - rubocop.gemspec
192
+ - lib/rubocop.rb
168
193
  - spec/rubocop/cli_spec.rb
194
+ - spec/rubocop/cops/alias_spec.rb
169
195
  - spec/rubocop/cops/align_parameters_spec.rb
170
196
  - spec/rubocop/cops/ampersands_pipes_vs_and_or_spec.rb
197
+ - spec/rubocop/cops/array_literal_spec.rb
198
+ - spec/rubocop/cops/ascii_identifiers_and_comments_spec.rb
199
+ - spec/rubocop/cops/avoid_class_vars_spec.rb
200
+ - spec/rubocop/cops/avoid_for_spec.rb
201
+ - spec/rubocop/cops/avoid_perl_backrefs_spec.rb
202
+ - spec/rubocop/cops/avoid_perlisms_spec.rb
203
+ - spec/rubocop/cops/brace_after_percent_spec.rb
204
+ - spec/rubocop/cops/class_and_module_camel_case_spec.rb
205
+ - spec/rubocop/cops/collection_methods_spec.rb
171
206
  - spec/rubocop/cops/cop_spec.rb
172
207
  - spec/rubocop/cops/def_with_parentheses_spec.rb
173
208
  - spec/rubocop/cops/def_without_parentheses_spec.rb
174
209
  - spec/rubocop/cops/empty_lines_spec.rb
175
210
  - spec/rubocop/cops/encoding_spec.rb
176
211
  - spec/rubocop/cops/end_of_line_spec.rb
212
+ - spec/rubocop/cops/ensure_return_spec.rb
213
+ - spec/rubocop/cops/favor_modifier_spec.rb
214
+ - spec/rubocop/cops/favor_percent_r.rb
215
+ - spec/rubocop/cops/favor_sprintf_spec.rb
216
+ - spec/rubocop/cops/favor_unless_over_negated_if_spec.rb
217
+ - spec/rubocop/cops/favor_until_over_negated_while_spec.rb
177
218
  - spec/rubocop/cops/grammar_spec.rb
219
+ - spec/rubocop/cops/handle_exceptions_spec.rb
220
+ - spec/rubocop/cops/hash_literal_spec.rb
178
221
  - spec/rubocop/cops/hash_syntax_spec.rb
179
222
  - spec/rubocop/cops/if_with_semicolon_spec.rb
180
223
  - spec/rubocop/cops/indentation_spec.rb
181
224
  - spec/rubocop/cops/line_length_spec.rb
225
+ - spec/rubocop/cops/method_and_variable_snake_case_spec.rb
226
+ - spec/rubocop/cops/method_length_spec.rb
182
227
  - spec/rubocop/cops/multiline_blocks_spec.rb
183
228
  - spec/rubocop/cops/multiline_if_then_spec.rb
229
+ - spec/rubocop/cops/new_lambda_literal_spec.rb
184
230
  - spec/rubocop/cops/numeric_literals_spec.rb
185
231
  - spec/rubocop/cops/offence_spec.rb
186
232
  - spec/rubocop/cops/one_line_conditional_spec.rb
233
+ - spec/rubocop/cops/op_method_spec.rb
187
234
  - spec/rubocop/cops/parameter_lists_spec.rb
235
+ - spec/rubocop/cops/parentheses_around_condition_spec.rb
236
+ - spec/rubocop/cops/percent_literals_spec.rb
237
+ - spec/rubocop/cops/percent_r_spec.rb
238
+ - spec/rubocop/cops/reduce_arguments_spec.rb
239
+ - spec/rubocop/cops/rescue_exception_spec.rb
240
+ - spec/rubocop/cops/rescue_modifier.rb
241
+ - spec/rubocop/cops/semicolon_spec.rb
188
242
  - spec/rubocop/cops/single_line_blocks_spec.rb
189
243
  - spec/rubocop/cops/space_after_colon_spec.rb
190
244
  - spec/rubocop/cops/space_after_comma_spec.rb
191
245
  - spec/rubocop/cops/space_after_semicolon_spec.rb
192
246
  - spec/rubocop/cops/space_around_braces_spec.rb
247
+ - spec/rubocop/cops/space_around_equals_in_default_parameter_spec.rb
193
248
  - spec/rubocop/cops/space_around_operators_spec.rb
194
249
  - spec/rubocop/cops/space_inside_brackets_spec.rb
195
250
  - spec/rubocop/cops/space_inside_parens_spec.rb
196
251
  - spec/rubocop/cops/string_literals_spec.rb
252
+ - spec/rubocop/cops/symbol_snake_case_spec.rb
253
+ - spec/rubocop/cops/syntax_spec.rb
197
254
  - spec/rubocop/cops/tab_spec.rb
198
255
  - spec/rubocop/cops/ternary_operator_spec.rb
199
256
  - spec/rubocop/cops/trailing_whitespace_spec.rb
200
257
  - spec/rubocop/cops/unless_else_spec.rb
258
+ - spec/rubocop/cops/variable_interpolation_spec.rb
201
259
  - spec/rubocop/cops/when_then_spec.rb
202
260
  - spec/rubocop/reports/emacs_style_spec.rb
203
261
  - spec/rubocop/reports/report_spec.rb
@@ -214,20 +272,91 @@ required_ruby_version: !ruby/object:Gem::Requirement
214
272
  requirements:
215
273
  - - ! '>='
216
274
  - !ruby/object:Gem::Version
217
- version: '0'
218
- segments:
219
- - 0
220
- hash: 1293678541270492107
275
+ version: 1.9.2
221
276
  required_rubygems_version: !ruby/object:Gem::Requirement
222
277
  none: false
223
278
  requirements:
224
279
  - - ! '>='
225
280
  - !ruby/object:Gem::Version
226
281
  version: '0'
282
+ segments:
283
+ - 0
284
+ hash: 4221530219562804900
227
285
  requirements: []
228
286
  rubyforge_project:
229
287
  rubygems_version: 1.8.23
230
288
  signing_key:
231
289
  specification_version: 3
232
290
  summary: Automatic Ruby code style checking tool.
233
- test_files: []
291
+ test_files:
292
+ - spec/rubocop/cli_spec.rb
293
+ - spec/rubocop/cops/alias_spec.rb
294
+ - spec/rubocop/cops/align_parameters_spec.rb
295
+ - spec/rubocop/cops/ampersands_pipes_vs_and_or_spec.rb
296
+ - spec/rubocop/cops/array_literal_spec.rb
297
+ - spec/rubocop/cops/ascii_identifiers_and_comments_spec.rb
298
+ - spec/rubocop/cops/avoid_class_vars_spec.rb
299
+ - spec/rubocop/cops/avoid_for_spec.rb
300
+ - spec/rubocop/cops/avoid_perl_backrefs_spec.rb
301
+ - spec/rubocop/cops/avoid_perlisms_spec.rb
302
+ - spec/rubocop/cops/brace_after_percent_spec.rb
303
+ - spec/rubocop/cops/class_and_module_camel_case_spec.rb
304
+ - spec/rubocop/cops/collection_methods_spec.rb
305
+ - spec/rubocop/cops/cop_spec.rb
306
+ - spec/rubocop/cops/def_with_parentheses_spec.rb
307
+ - spec/rubocop/cops/def_without_parentheses_spec.rb
308
+ - spec/rubocop/cops/empty_lines_spec.rb
309
+ - spec/rubocop/cops/encoding_spec.rb
310
+ - spec/rubocop/cops/end_of_line_spec.rb
311
+ - spec/rubocop/cops/ensure_return_spec.rb
312
+ - spec/rubocop/cops/favor_modifier_spec.rb
313
+ - spec/rubocop/cops/favor_percent_r.rb
314
+ - spec/rubocop/cops/favor_sprintf_spec.rb
315
+ - spec/rubocop/cops/favor_unless_over_negated_if_spec.rb
316
+ - spec/rubocop/cops/favor_until_over_negated_while_spec.rb
317
+ - spec/rubocop/cops/grammar_spec.rb
318
+ - spec/rubocop/cops/handle_exceptions_spec.rb
319
+ - spec/rubocop/cops/hash_literal_spec.rb
320
+ - spec/rubocop/cops/hash_syntax_spec.rb
321
+ - spec/rubocop/cops/if_with_semicolon_spec.rb
322
+ - spec/rubocop/cops/indentation_spec.rb
323
+ - spec/rubocop/cops/line_length_spec.rb
324
+ - spec/rubocop/cops/method_and_variable_snake_case_spec.rb
325
+ - spec/rubocop/cops/method_length_spec.rb
326
+ - spec/rubocop/cops/multiline_blocks_spec.rb
327
+ - spec/rubocop/cops/multiline_if_then_spec.rb
328
+ - spec/rubocop/cops/new_lambda_literal_spec.rb
329
+ - spec/rubocop/cops/numeric_literals_spec.rb
330
+ - spec/rubocop/cops/offence_spec.rb
331
+ - spec/rubocop/cops/one_line_conditional_spec.rb
332
+ - spec/rubocop/cops/op_method_spec.rb
333
+ - spec/rubocop/cops/parameter_lists_spec.rb
334
+ - spec/rubocop/cops/parentheses_around_condition_spec.rb
335
+ - spec/rubocop/cops/percent_literals_spec.rb
336
+ - spec/rubocop/cops/percent_r_spec.rb
337
+ - spec/rubocop/cops/reduce_arguments_spec.rb
338
+ - spec/rubocop/cops/rescue_exception_spec.rb
339
+ - spec/rubocop/cops/rescue_modifier.rb
340
+ - spec/rubocop/cops/semicolon_spec.rb
341
+ - spec/rubocop/cops/single_line_blocks_spec.rb
342
+ - spec/rubocop/cops/space_after_colon_spec.rb
343
+ - spec/rubocop/cops/space_after_comma_spec.rb
344
+ - spec/rubocop/cops/space_after_semicolon_spec.rb
345
+ - spec/rubocop/cops/space_around_braces_spec.rb
346
+ - spec/rubocop/cops/space_around_equals_in_default_parameter_spec.rb
347
+ - spec/rubocop/cops/space_around_operators_spec.rb
348
+ - spec/rubocop/cops/space_inside_brackets_spec.rb
349
+ - spec/rubocop/cops/space_inside_parens_spec.rb
350
+ - spec/rubocop/cops/string_literals_spec.rb
351
+ - spec/rubocop/cops/symbol_snake_case_spec.rb
352
+ - spec/rubocop/cops/syntax_spec.rb
353
+ - spec/rubocop/cops/tab_spec.rb
354
+ - spec/rubocop/cops/ternary_operator_spec.rb
355
+ - spec/rubocop/cops/trailing_whitespace_spec.rb
356
+ - spec/rubocop/cops/unless_else_spec.rb
357
+ - spec/rubocop/cops/variable_interpolation_spec.rb
358
+ - spec/rubocop/cops/when_then_spec.rb
359
+ - spec/rubocop/reports/emacs_style_spec.rb
360
+ - spec/rubocop/reports/report_spec.rb
361
+ - spec/spec_helper.rb
362
+ has_rdoc:
data/.rbenv-version DELETED
@@ -1 +0,0 @@
1
- 1.9.3-p327
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm use --create 1.9.3@rubocop
data/Gemfile.lock DELETED
@@ -1,39 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- diff-lcs (1.1.3)
5
- git (1.2.5)
6
- jeweler (1.8.4)
7
- bundler (~> 1.0)
8
- git (>= 1.2.5)
9
- rake
10
- rdoc
11
- json (1.7.6)
12
- multi_json (1.5.0)
13
- rake (10.0.3)
14
- rdoc (3.12)
15
- json (~> 1.4)
16
- rspec (2.12.0)
17
- rspec-core (~> 2.12.0)
18
- rspec-expectations (~> 2.12.0)
19
- rspec-mocks (~> 2.12.0)
20
- rspec-core (2.12.2)
21
- rspec-expectations (2.12.1)
22
- diff-lcs (~> 1.1.3)
23
- rspec-mocks (2.12.1)
24
- simplecov (0.7.1)
25
- multi_json (~> 1.0)
26
- simplecov-html (~> 0.7.1)
27
- simplecov-html (0.7.1)
28
- yard (0.8.3)
29
-
30
- PLATFORMS
31
- ruby
32
-
33
- DEPENDENCIES
34
- bundler (~> 1.2.0)
35
- jeweler (~> 1.8.3)
36
- rake (~> 10.0.0)
37
- rspec (~> 2.12.0)
38
- simplecov
39
- yard (~> 0.8.0)
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.3.0
@@ -1,9 +0,0 @@
1
- Feature: something something
2
- In order to something something
3
- A user something something
4
- something something something
5
-
6
- Scenario: something something
7
- Given inspiration
8
- When I create a sweet new gem
9
- Then everyone should see how awesome I am
@@ -1 +0,0 @@
1
- # encoding: utf-8
@@ -1,15 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require 'bundler'
4
- begin
5
- Bundler.setup(:default, :development)
6
- rescue Bundler::BundlerError => e
7
- $stderr.puts e.message
8
- $stderr.puts 'Run `bundle install` to install missing gems'
9
- exit e.status_code
10
- end
11
-
12
- $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
13
- require 'rubocop'
14
-
15
- require 'rspec/expectations'