rubocop 0.6.1 → 0.7.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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +4 -266
  3. data/CHANGELOG.md +49 -7
  4. data/README.md +75 -2
  5. data/Rakefile +2 -2
  6. data/bin/rubocop +15 -10
  7. data/lib/rubocop.rb +19 -1
  8. data/lib/rubocop/cli.rb +113 -116
  9. data/lib/rubocop/config.rb +202 -0
  10. data/lib/rubocop/config_store.rb +37 -0
  11. data/lib/rubocop/cop/alias.rb +2 -5
  12. data/lib/rubocop/cop/align_parameters.rb +1 -1
  13. data/lib/rubocop/cop/array_literal.rb +43 -4
  14. data/lib/rubocop/cop/avoid_for.rb +2 -4
  15. data/lib/rubocop/cop/avoid_global_vars.rb +49 -0
  16. data/lib/rubocop/cop/block_comments.rb +17 -0
  17. data/lib/rubocop/cop/brace_after_percent.rb +9 -5
  18. data/lib/rubocop/cop/{indentation.rb → case_indentation.rb} +1 -1
  19. data/lib/rubocop/cop/class_methods.rb +20 -0
  20. data/lib/rubocop/cop/colon_method_call.rb +44 -0
  21. data/lib/rubocop/cop/cop.rb +30 -2
  22. data/lib/rubocop/cop/def_parentheses.rb +1 -1
  23. data/lib/rubocop/cop/empty_line_between_defs.rb +26 -0
  24. data/lib/rubocop/cop/empty_lines.rb +10 -13
  25. data/lib/rubocop/cop/eval.rb +22 -0
  26. data/lib/rubocop/cop/favor_join.rb +37 -0
  27. data/lib/rubocop/cop/grammar.rb +2 -2
  28. data/lib/rubocop/cop/hash_literal.rb +43 -4
  29. data/lib/rubocop/cop/hash_syntax.rb +2 -2
  30. data/lib/rubocop/cop/if_then_else.rb +1 -1
  31. data/lib/rubocop/cop/leading_comment_space.rb +20 -0
  32. data/lib/rubocop/cop/line_continuation.rb +18 -0
  33. data/lib/rubocop/cop/line_length.rb +1 -1
  34. data/lib/rubocop/cop/method_and_variable_snake_case.rb +7 -6
  35. data/lib/rubocop/cop/method_length.rb +4 -15
  36. data/lib/rubocop/cop/not.rb +15 -0
  37. data/lib/rubocop/cop/offence.rb +9 -0
  38. data/lib/rubocop/cop/semicolon.rb +74 -3
  39. data/lib/rubocop/cop/single_line_methods.rb +60 -0
  40. data/lib/rubocop/cop/space_after_control_keyword.rb +28 -0
  41. data/lib/rubocop/cop/surrounding_space.rb +48 -9
  42. data/lib/rubocop/cop/symbol_array.rb +29 -0
  43. data/lib/rubocop/cop/trivial_accessors.rb +103 -0
  44. data/lib/rubocop/cop/unless_else.rb +1 -1
  45. data/lib/rubocop/cop/variable_interpolation.rb +3 -2
  46. data/lib/rubocop/cop/word_array.rb +38 -0
  47. data/lib/rubocop/version.rb +1 -1
  48. data/rubocop.gemspec +11 -7
  49. data/spec/project_spec.rb +27 -0
  50. data/spec/rubocop/cli_spec.rb +549 -487
  51. data/spec/rubocop/config_spec.rb +399 -0
  52. data/spec/rubocop/config_store_spec.rb +66 -0
  53. data/spec/rubocop/cops/alias_spec.rb +7 -0
  54. data/spec/rubocop/cops/array_literal_spec.rb +8 -1
  55. data/spec/rubocop/cops/avoid_for_spec.rb +15 -1
  56. data/spec/rubocop/cops/avoid_global_vars.rb +32 -0
  57. data/spec/rubocop/cops/block_comments_spec.rb +29 -0
  58. data/spec/rubocop/cops/brace_after_percent_spec.rb +19 -13
  59. data/spec/rubocop/cops/{indentation_spec.rb → case_indentation_spec.rb} +2 -2
  60. data/spec/rubocop/cops/class_methods_spec.rb +49 -0
  61. data/spec/rubocop/cops/colon_method_call_spec.rb +47 -0
  62. data/spec/rubocop/cops/empty_line_between_defs_spec.rb +83 -0
  63. data/spec/rubocop/cops/empty_lines_spec.rb +6 -63
  64. data/spec/rubocop/cops/eval_spec.rb +36 -0
  65. data/spec/rubocop/cops/favor_join_spec.rb +39 -0
  66. data/spec/rubocop/cops/hash_literal_spec.rb +8 -1
  67. data/spec/rubocop/cops/leading_comment_space_spec.rb +60 -0
  68. data/spec/rubocop/cops/line_continuation_spec.rb +24 -0
  69. data/spec/rubocop/cops/line_length_spec.rb +1 -0
  70. data/spec/rubocop/cops/method_and_variable_snake_case_spec.rb +20 -0
  71. data/spec/rubocop/cops/method_length_spec.rb +2 -5
  72. data/spec/rubocop/cops/new_lambda_literal_spec.rb +2 -3
  73. data/spec/rubocop/cops/not_spec.rb +34 -0
  74. data/spec/rubocop/cops/offence_spec.rb +7 -0
  75. data/spec/rubocop/cops/semicolon_spec.rb +79 -4
  76. data/spec/rubocop/cops/single_line_methods_spec.rb +50 -0
  77. data/spec/rubocop/cops/space_after_control_keyword_spec.rb +28 -0
  78. data/spec/rubocop/cops/space_around_equals_in_default_parameter_spec.rb +11 -1
  79. data/spec/rubocop/cops/space_inside_hash_literal_braces_spec.rb +74 -0
  80. data/spec/rubocop/cops/symbol_array_spec.rb +25 -0
  81. data/spec/rubocop/cops/trivial_accessors_spec.rb +332 -0
  82. data/spec/rubocop/cops/variable_interpolation_spec.rb +10 -1
  83. data/spec/rubocop/cops/word_array_spec.rb +39 -0
  84. data/spec/spec_helper.rb +16 -9
  85. data/spec/support/file_helper.rb +21 -0
  86. data/spec/support/isolated_environment.rb +27 -0
  87. metadata +66 -6
@@ -16,6 +16,15 @@ module Rubocop
16
16
  .to eq(['Replace interpolated var $test with expression #{$test}.'])
17
17
  end
18
18
 
19
+ it 'registers an offence for interpolated regexp back references' do
20
+ inspect_source(vi,
21
+ 'file.rb',
22
+ ['puts "this is a #$1"'])
23
+ expect(vi.offences.size).to eq(1)
24
+ expect(vi.offences.map(&:message))
25
+ .to eq(['Replace interpolated var $1 with expression #{$1}.'])
26
+ end
27
+
19
28
  it 'registers an offence for interpolated instance variables' do
20
29
  inspect_source(vi,
21
30
  'file.rb',
@@ -37,7 +46,7 @@ module Rubocop
37
46
  it 'does not register an offence for variables in expressions' do
38
47
  inspect_source(vi,
39
48
  'file.rb',
40
- ['puts "this is a #{@test}"'])
49
+ ['puts "this is a #{@test} #{@@t} #{$t} #{$1}"'])
41
50
  expect(vi.offences).to be_empty
42
51
  end
43
52
  end
@@ -0,0 +1,39 @@
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
4
+
5
+ module Rubocop
6
+ module Cop
7
+ describe WordArray do
8
+ let(:wa) { WordArray.new }
9
+
10
+ it 'registers an offence for arrays of single quoted strings' do
11
+ inspect_source(wa,
12
+ 'file.rb',
13
+ ["['one', 'two', 'three']"])
14
+ expect(wa.offences.size).to eq(1)
15
+ end
16
+
17
+ it 'registers an offence for arrays of double quoted strings' do
18
+ inspect_source(wa,
19
+ 'file.rb',
20
+ ['["one", "two", "three"]'])
21
+ expect(wa.offences.size).to eq(1)
22
+ end
23
+
24
+ it 'does not register an offence for array of non-words' do
25
+ inspect_source(wa,
26
+ 'file.rb',
27
+ ['["one space", "two", "three"]'])
28
+ expect(wa.offences).to be_empty
29
+ end
30
+
31
+ it 'does not register an offence for array with empty strings' do
32
+ inspect_source(wa,
33
+ 'file.rb',
34
+ ['["", "two", "three"]'])
35
+ expect(wa.offences).to be_empty
36
+ end
37
+ end
38
+ end
39
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,11 +1,17 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'coveralls'
4
- Coveralls.wear!
5
-
6
- if ENV['COVERAGE']
3
+ if ENV['TRAVIS'] || ENV['COVERAGE']
7
4
  require 'simplecov'
8
- SimpleCov.start
5
+
6
+ if ENV['TRAVIS']
7
+ require 'coveralls'
8
+ SimpleCov.formatter = Coveralls::SimpleCov::Formatter
9
+ end
10
+
11
+ SimpleCov.start do
12
+ add_filter '/spec/'
13
+ add_filter '/vendor/bundle/'
14
+ end
9
15
  end
10
16
 
11
17
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
@@ -17,10 +23,6 @@ require 'rubocop/cli'
17
23
  # disable colors in specs
18
24
  Sickill::Rainbow.enabled = false
19
25
 
20
- # Requires supporting files with custom matchers and macros, etc,
21
- # in ./support/ and its subdirectories.
22
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
23
-
24
26
  module ExitCodeMatchers
25
27
  RSpec::Matchers.define :exit_with_code do |code|
26
28
  actual = nil
@@ -47,6 +49,7 @@ end
47
49
 
48
50
  RSpec.configure do |config|
49
51
  config.filter_run_excluding ruby: ->(v) { !RUBY_VERSION.start_with?(v.to_s) }
52
+ config.treat_symbols_as_metadata_keys_with_true_values = true
50
53
 
51
54
  config.expect_with :rspec do |c|
52
55
  c.syntax = :expect # disables `should`
@@ -55,6 +58,10 @@ RSpec.configure do |config|
55
58
  config.include(ExitCodeMatchers)
56
59
  end
57
60
 
61
+ # Requires supporting files with custom matchers and macros, etc,
62
+ # in ./support/ and its subdirectories.
63
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
64
+
58
65
  def inspect_source(cop, file, source)
59
66
  tokens, sexp, correlations = Rubocop::CLI.rip_source(source)
60
67
  cop.correlations = correlations
@@ -0,0 +1,21 @@
1
+ # encoding: utf-8
2
+
3
+ require 'fileutils'
4
+
5
+ module FileHelper
6
+ def create_file(file_path, content)
7
+ file_path = File.expand_path(file_path)
8
+
9
+ dir_path = File.dirname(file_path)
10
+ FileUtils.makedirs dir_path unless File.exists?(dir_path)
11
+
12
+ File.open(file_path, 'w') do |file|
13
+ case content
14
+ when String
15
+ file.puts content
16
+ when Array
17
+ file.puts content.join("\n")
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,27 @@
1
+ # encoding: utf-8
2
+
3
+ require 'tmpdir'
4
+ require 'fileutils'
5
+
6
+ shared_context 'isolated environment', :isolated_environment do
7
+ around do |example|
8
+ Dir.mktmpdir do |tmpdir|
9
+ original_home = ENV['HOME']
10
+
11
+ begin
12
+ virtual_home = File.expand_path(File.join(tmpdir, 'home'))
13
+ Dir.mkdir(virtual_home)
14
+ ENV['HOME'] = virtual_home
15
+
16
+ working_dir = File.join(tmpdir, 'work')
17
+ Dir.mkdir(working_dir)
18
+
19
+ Dir.chdir(working_dir) do
20
+ example.run
21
+ end
22
+ ensure
23
+ ENV['HOME'] = original_home
24
+ end
25
+ end
26
+ end
27
+ end
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.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
@@ -94,8 +94,9 @@ dependencies:
94
94
  - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0.7'
97
- description: Automatic Ruby code style checking tool. Aims to enforce the community-driven
98
- Ruby Style Guide.
97
+ description: |2
98
+ Automatic Ruby code style checking tool.
99
+ Aims to enforce the community-driven Ruby Style Guide.
99
100
  email: bozhidar@batsov.com
100
101
  executables:
101
102
  - rubocop
@@ -117,6 +118,8 @@ files:
117
118
  - bin/rubocop
118
119
  - rubocop.gemspec
119
120
  - lib/rubocop/cli.rb
121
+ - lib/rubocop/config.rb
122
+ - lib/rubocop/config_store.rb
120
123
  - lib/rubocop/cop/alias.rb
121
124
  - lib/rubocop/cop/align_parameters.rb
122
125
  - lib/rubocop/cop/ampersands_pipes_vs_and_or.rb
@@ -125,18 +128,26 @@ files:
125
128
  - lib/rubocop/cop/ascii_identifiers.rb
126
129
  - lib/rubocop/cop/avoid_class_vars.rb
127
130
  - lib/rubocop/cop/avoid_for.rb
131
+ - lib/rubocop/cop/avoid_global_vars.rb
128
132
  - lib/rubocop/cop/avoid_perl_backrefs.rb
129
133
  - lib/rubocop/cop/avoid_perlisms.rb
134
+ - lib/rubocop/cop/block_comments.rb
130
135
  - lib/rubocop/cop/blocks.rb
131
136
  - lib/rubocop/cop/brace_after_percent.rb
137
+ - lib/rubocop/cop/case_indentation.rb
132
138
  - lib/rubocop/cop/class_and_module_camel_case.rb
139
+ - lib/rubocop/cop/class_methods.rb
133
140
  - lib/rubocop/cop/collection_methods.rb
141
+ - lib/rubocop/cop/colon_method_call.rb
134
142
  - lib/rubocop/cop/cop.rb
135
143
  - lib/rubocop/cop/def_parentheses.rb
144
+ - lib/rubocop/cop/empty_line_between_defs.rb
136
145
  - lib/rubocop/cop/empty_lines.rb
137
146
  - lib/rubocop/cop/encoding.rb
138
147
  - lib/rubocop/cop/end_of_line.rb
139
148
  - lib/rubocop/cop/ensure_return.rb
149
+ - lib/rubocop/cop/eval.rb
150
+ - lib/rubocop/cop/favor_join.rb
140
151
  - lib/rubocop/cop/favor_modifier.rb
141
152
  - lib/rubocop/cop/favor_percent_r.rb
142
153
  - lib/rubocop/cop/favor_sprintf.rb
@@ -146,11 +157,13 @@ files:
146
157
  - lib/rubocop/cop/hash_literal.rb
147
158
  - lib/rubocop/cop/hash_syntax.rb
148
159
  - lib/rubocop/cop/if_then_else.rb
149
- - lib/rubocop/cop/indentation.rb
160
+ - lib/rubocop/cop/leading_comment_space.rb
161
+ - lib/rubocop/cop/line_continuation.rb
150
162
  - lib/rubocop/cop/line_length.rb
151
163
  - lib/rubocop/cop/method_and_variable_snake_case.rb
152
164
  - lib/rubocop/cop/method_length.rb
153
165
  - lib/rubocop/cop/new_lambda_literal.rb
166
+ - lib/rubocop/cop/not.rb
154
167
  - lib/rubocop/cop/numeric_literals.rb
155
168
  - lib/rubocop/cop/offence.rb
156
169
  - lib/rubocop/cop/op_method.rb
@@ -162,23 +175,31 @@ files:
162
175
  - lib/rubocop/cop/rescue_exception.rb
163
176
  - lib/rubocop/cop/rescue_modifier.rb
164
177
  - lib/rubocop/cop/semicolon.rb
178
+ - lib/rubocop/cop/single_line_methods.rb
165
179
  - lib/rubocop/cop/space_after_comma_etc.rb
180
+ - lib/rubocop/cop/space_after_control_keyword.rb
166
181
  - lib/rubocop/cop/string_literals.rb
167
182
  - lib/rubocop/cop/surrounding_space.rb
183
+ - lib/rubocop/cop/symbol_array.rb
168
184
  - lib/rubocop/cop/symbol_snake_case.rb
169
185
  - lib/rubocop/cop/syntax.rb
170
186
  - lib/rubocop/cop/tab.rb
171
187
  - lib/rubocop/cop/ternary_operator.rb
172
188
  - lib/rubocop/cop/trailing_whitespace.rb
189
+ - lib/rubocop/cop/trivial_accessors.rb
173
190
  - lib/rubocop/cop/unless_else.rb
174
191
  - lib/rubocop/cop/variable_interpolation.rb
175
192
  - lib/rubocop/cop/when_then.rb
193
+ - lib/rubocop/cop/word_array.rb
176
194
  - lib/rubocop/report/emacs_style.rb
177
195
  - lib/rubocop/report/plain_text.rb
178
196
  - lib/rubocop/report/report.rb
179
197
  - lib/rubocop/version.rb
180
198
  - lib/rubocop.rb
199
+ - spec/project_spec.rb
181
200
  - spec/rubocop/cli_spec.rb
201
+ - spec/rubocop/config_spec.rb
202
+ - spec/rubocop/config_store_spec.rb
182
203
  - spec/rubocop/cops/alias_spec.rb
183
204
  - spec/rubocop/cops/align_parameters_spec.rb
184
205
  - spec/rubocop/cops/ampersands_pipes_vs_and_or_spec.rb
@@ -187,18 +208,26 @@ files:
187
208
  - spec/rubocop/cops/ascii_identifiers_spec.rb
188
209
  - spec/rubocop/cops/avoid_class_vars_spec.rb
189
210
  - spec/rubocop/cops/avoid_for_spec.rb
211
+ - spec/rubocop/cops/avoid_global_vars.rb
190
212
  - spec/rubocop/cops/avoid_perl_backrefs_spec.rb
191
213
  - spec/rubocop/cops/avoid_perlisms_spec.rb
214
+ - spec/rubocop/cops/block_comments_spec.rb
192
215
  - spec/rubocop/cops/brace_after_percent_spec.rb
216
+ - spec/rubocop/cops/case_indentation_spec.rb
193
217
  - spec/rubocop/cops/class_and_module_camel_case_spec.rb
218
+ - spec/rubocop/cops/class_methods_spec.rb
194
219
  - spec/rubocop/cops/collection_methods_spec.rb
220
+ - spec/rubocop/cops/colon_method_call_spec.rb
195
221
  - spec/rubocop/cops/cop_spec.rb
196
222
  - spec/rubocop/cops/def_with_parentheses_spec.rb
197
223
  - spec/rubocop/cops/def_without_parentheses_spec.rb
224
+ - spec/rubocop/cops/empty_line_between_defs_spec.rb
198
225
  - spec/rubocop/cops/empty_lines_spec.rb
199
226
  - spec/rubocop/cops/encoding_spec.rb
200
227
  - spec/rubocop/cops/end_of_line_spec.rb
201
228
  - spec/rubocop/cops/ensure_return_spec.rb
229
+ - spec/rubocop/cops/eval_spec.rb
230
+ - spec/rubocop/cops/favor_join_spec.rb
202
231
  - spec/rubocop/cops/favor_modifier_spec.rb
203
232
  - spec/rubocop/cops/favor_percent_r.rb
204
233
  - spec/rubocop/cops/favor_sprintf_spec.rb
@@ -209,13 +238,15 @@ files:
209
238
  - spec/rubocop/cops/hash_literal_spec.rb
210
239
  - spec/rubocop/cops/hash_syntax_spec.rb
211
240
  - spec/rubocop/cops/if_with_semicolon_spec.rb
212
- - spec/rubocop/cops/indentation_spec.rb
241
+ - spec/rubocop/cops/leading_comment_space_spec.rb
242
+ - spec/rubocop/cops/line_continuation_spec.rb
213
243
  - spec/rubocop/cops/line_length_spec.rb
214
244
  - spec/rubocop/cops/method_and_variable_snake_case_spec.rb
215
245
  - spec/rubocop/cops/method_length_spec.rb
216
246
  - spec/rubocop/cops/multiline_blocks_spec.rb
217
247
  - spec/rubocop/cops/multiline_if_then_spec.rb
218
248
  - spec/rubocop/cops/new_lambda_literal_spec.rb
249
+ - spec/rubocop/cops/not_spec.rb
219
250
  - spec/rubocop/cops/numeric_literals_spec.rb
220
251
  - spec/rubocop/cops/offence_spec.rb
221
252
  - spec/rubocop/cops/one_line_conditional_spec.rb
@@ -229,26 +260,34 @@ files:
229
260
  - spec/rubocop/cops/rescue_modifier.rb
230
261
  - spec/rubocop/cops/semicolon_spec.rb
231
262
  - spec/rubocop/cops/single_line_blocks_spec.rb
263
+ - spec/rubocop/cops/single_line_methods_spec.rb
232
264
  - spec/rubocop/cops/space_after_colon_spec.rb
233
265
  - spec/rubocop/cops/space_after_comma_spec.rb
266
+ - spec/rubocop/cops/space_after_control_keyword_spec.rb
234
267
  - spec/rubocop/cops/space_after_semicolon_spec.rb
235
268
  - spec/rubocop/cops/space_around_braces_spec.rb
236
269
  - spec/rubocop/cops/space_around_equals_in_default_parameter_spec.rb
237
270
  - spec/rubocop/cops/space_around_operators_spec.rb
238
271
  - spec/rubocop/cops/space_inside_brackets_spec.rb
272
+ - spec/rubocop/cops/space_inside_hash_literal_braces_spec.rb
239
273
  - spec/rubocop/cops/space_inside_parens_spec.rb
240
274
  - spec/rubocop/cops/string_literals_spec.rb
275
+ - spec/rubocop/cops/symbol_array_spec.rb
241
276
  - spec/rubocop/cops/symbol_snake_case_spec.rb
242
277
  - spec/rubocop/cops/syntax_spec.rb
243
278
  - spec/rubocop/cops/tab_spec.rb
244
279
  - spec/rubocop/cops/ternary_operator_spec.rb
245
280
  - spec/rubocop/cops/trailing_whitespace_spec.rb
281
+ - spec/rubocop/cops/trivial_accessors_spec.rb
246
282
  - spec/rubocop/cops/unless_else_spec.rb
247
283
  - spec/rubocop/cops/variable_interpolation_spec.rb
248
284
  - spec/rubocop/cops/when_then_spec.rb
285
+ - spec/rubocop/cops/word_array_spec.rb
249
286
  - spec/rubocop/reports/emacs_style_spec.rb
250
287
  - spec/rubocop/reports/report_spec.rb
251
288
  - spec/spec_helper.rb
289
+ - spec/support/file_helper.rb
290
+ - spec/support/isolated_environment.rb
252
291
  homepage: http://github.com/bbatsov/rubocop
253
292
  licenses:
254
293
  - MIT
@@ -274,7 +313,10 @@ signing_key:
274
313
  specification_version: 4
275
314
  summary: Automatic Ruby code style checking tool.
276
315
  test_files:
316
+ - spec/project_spec.rb
277
317
  - spec/rubocop/cli_spec.rb
318
+ - spec/rubocop/config_spec.rb
319
+ - spec/rubocop/config_store_spec.rb
278
320
  - spec/rubocop/cops/alias_spec.rb
279
321
  - spec/rubocop/cops/align_parameters_spec.rb
280
322
  - spec/rubocop/cops/ampersands_pipes_vs_and_or_spec.rb
@@ -283,18 +325,26 @@ test_files:
283
325
  - spec/rubocop/cops/ascii_identifiers_spec.rb
284
326
  - spec/rubocop/cops/avoid_class_vars_spec.rb
285
327
  - spec/rubocop/cops/avoid_for_spec.rb
328
+ - spec/rubocop/cops/avoid_global_vars.rb
286
329
  - spec/rubocop/cops/avoid_perl_backrefs_spec.rb
287
330
  - spec/rubocop/cops/avoid_perlisms_spec.rb
331
+ - spec/rubocop/cops/block_comments_spec.rb
288
332
  - spec/rubocop/cops/brace_after_percent_spec.rb
333
+ - spec/rubocop/cops/case_indentation_spec.rb
289
334
  - spec/rubocop/cops/class_and_module_camel_case_spec.rb
335
+ - spec/rubocop/cops/class_methods_spec.rb
290
336
  - spec/rubocop/cops/collection_methods_spec.rb
337
+ - spec/rubocop/cops/colon_method_call_spec.rb
291
338
  - spec/rubocop/cops/cop_spec.rb
292
339
  - spec/rubocop/cops/def_with_parentheses_spec.rb
293
340
  - spec/rubocop/cops/def_without_parentheses_spec.rb
341
+ - spec/rubocop/cops/empty_line_between_defs_spec.rb
294
342
  - spec/rubocop/cops/empty_lines_spec.rb
295
343
  - spec/rubocop/cops/encoding_spec.rb
296
344
  - spec/rubocop/cops/end_of_line_spec.rb
297
345
  - spec/rubocop/cops/ensure_return_spec.rb
346
+ - spec/rubocop/cops/eval_spec.rb
347
+ - spec/rubocop/cops/favor_join_spec.rb
298
348
  - spec/rubocop/cops/favor_modifier_spec.rb
299
349
  - spec/rubocop/cops/favor_percent_r.rb
300
350
  - spec/rubocop/cops/favor_sprintf_spec.rb
@@ -305,13 +355,15 @@ test_files:
305
355
  - spec/rubocop/cops/hash_literal_spec.rb
306
356
  - spec/rubocop/cops/hash_syntax_spec.rb
307
357
  - spec/rubocop/cops/if_with_semicolon_spec.rb
308
- - spec/rubocop/cops/indentation_spec.rb
358
+ - spec/rubocop/cops/leading_comment_space_spec.rb
359
+ - spec/rubocop/cops/line_continuation_spec.rb
309
360
  - spec/rubocop/cops/line_length_spec.rb
310
361
  - spec/rubocop/cops/method_and_variable_snake_case_spec.rb
311
362
  - spec/rubocop/cops/method_length_spec.rb
312
363
  - spec/rubocop/cops/multiline_blocks_spec.rb
313
364
  - spec/rubocop/cops/multiline_if_then_spec.rb
314
365
  - spec/rubocop/cops/new_lambda_literal_spec.rb
366
+ - spec/rubocop/cops/not_spec.rb
315
367
  - spec/rubocop/cops/numeric_literals_spec.rb
316
368
  - spec/rubocop/cops/offence_spec.rb
317
369
  - spec/rubocop/cops/one_line_conditional_spec.rb
@@ -325,24 +377,32 @@ test_files:
325
377
  - spec/rubocop/cops/rescue_modifier.rb
326
378
  - spec/rubocop/cops/semicolon_spec.rb
327
379
  - spec/rubocop/cops/single_line_blocks_spec.rb
380
+ - spec/rubocop/cops/single_line_methods_spec.rb
328
381
  - spec/rubocop/cops/space_after_colon_spec.rb
329
382
  - spec/rubocop/cops/space_after_comma_spec.rb
383
+ - spec/rubocop/cops/space_after_control_keyword_spec.rb
330
384
  - spec/rubocop/cops/space_after_semicolon_spec.rb
331
385
  - spec/rubocop/cops/space_around_braces_spec.rb
332
386
  - spec/rubocop/cops/space_around_equals_in_default_parameter_spec.rb
333
387
  - spec/rubocop/cops/space_around_operators_spec.rb
334
388
  - spec/rubocop/cops/space_inside_brackets_spec.rb
389
+ - spec/rubocop/cops/space_inside_hash_literal_braces_spec.rb
335
390
  - spec/rubocop/cops/space_inside_parens_spec.rb
336
391
  - spec/rubocop/cops/string_literals_spec.rb
392
+ - spec/rubocop/cops/symbol_array_spec.rb
337
393
  - spec/rubocop/cops/symbol_snake_case_spec.rb
338
394
  - spec/rubocop/cops/syntax_spec.rb
339
395
  - spec/rubocop/cops/tab_spec.rb
340
396
  - spec/rubocop/cops/ternary_operator_spec.rb
341
397
  - spec/rubocop/cops/trailing_whitespace_spec.rb
398
+ - spec/rubocop/cops/trivial_accessors_spec.rb
342
399
  - spec/rubocop/cops/unless_else_spec.rb
343
400
  - spec/rubocop/cops/variable_interpolation_spec.rb
344
401
  - spec/rubocop/cops/when_then_spec.rb
402
+ - spec/rubocop/cops/word_array_spec.rb
345
403
  - spec/rubocop/reports/emacs_style_spec.rb
346
404
  - spec/rubocop/reports/report_spec.rb
347
405
  - spec/spec_helper.rb
406
+ - spec/support/file_helper.rb
407
+ - spec/support/isolated_environment.rb
348
408
  has_rdoc: