rubocop 0.10.0 → 0.11.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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +35 -0
- data/CONTRIBUTING.md +2 -0
- data/README.md +102 -5
- data/config/default.yml +31 -3
- data/config/enabled.yml +21 -3
- data/lib/rubocop.rb +5 -0
- data/lib/rubocop/cli.rb +27 -7
- data/lib/rubocop/config.rb +21 -2
- data/lib/rubocop/config_store.rb +4 -1
- data/lib/rubocop/cop/commissioner.rb +2 -4
- data/lib/rubocop/cop/cop.rb +8 -8
- data/lib/rubocop/cop/lint/assignment_in_condition.rb +3 -0
- data/lib/rubocop/cop/lint/block_alignment.rb +10 -20
- data/lib/rubocop/cop/lint/useless_assignment.rb +63 -0
- data/lib/rubocop/cop/lint/useless_comparison.rb +30 -0
- data/lib/rubocop/cop/style/align_parameters.rb +23 -13
- data/lib/rubocop/cop/style/and_or.rb +13 -1
- data/lib/rubocop/cop/style/blocks.rb +35 -0
- data/lib/rubocop/cop/style/character_literal.rb +1 -1
- data/lib/rubocop/cop/style/comment_annotation.rb +20 -5
- data/lib/rubocop/cop/style/dot_position.rb +7 -1
- data/lib/rubocop/cop/style/empty_line_between_defs.rb +1 -1
- data/lib/rubocop/cop/style/favor_modifier.rb +4 -4
- data/lib/rubocop/cop/style/module_function.rb +34 -0
- data/lib/rubocop/cop/style/multiline_if_then.rb +7 -9
- data/lib/rubocop/cop/style/redundant_begin.rb +7 -7
- data/lib/rubocop/cop/style/redundant_return.rb +9 -11
- data/lib/rubocop/cop/style/redundant_self.rb +5 -1
- data/lib/rubocop/cop/style/regexp_literal.rb +2 -1
- data/lib/rubocop/cop/style/signal_exception.rb +40 -0
- data/lib/rubocop/cop/style/string_literals.rb +2 -2
- data/lib/rubocop/cop/style/symbol_name.rb +11 -0
- data/lib/rubocop/cop/style/trivial_accessors.rb +22 -10
- data/lib/rubocop/cop/variable_inspector.rb +92 -71
- data/lib/rubocop/formatter/clang_style_formatter.rb +8 -3
- data/lib/rubocop/formatter/disabled_config_formatter.rb +32 -0
- data/lib/rubocop/formatter/formatter_set.rb +7 -4
- data/lib/rubocop/target_finder.rb +3 -4
- data/lib/rubocop/version.rb +1 -1
- data/rubocop.gemspec +1 -1
- data/spec/rubocop/cli_spec.rb +90 -1
- data/spec/rubocop/cops/commissioner_spec.rb +1 -1
- data/spec/rubocop/cops/lint/assignment_in_condition_spec.rb +6 -0
- data/spec/rubocop/cops/lint/block_alignment_spec.rb +16 -4
- data/spec/rubocop/cops/lint/empty_ensure_spec.rb +1 -1
- data/spec/rubocop/cops/lint/ensure_return_spec.rb +1 -1
- data/spec/rubocop/cops/lint/shadowing_outer_local_variable_spec.rb +4 -4
- data/spec/rubocop/cops/lint/unused_local_variable_spec.rb +49 -13
- data/spec/rubocop/cops/lint/useless_assignment_spec.rb +62 -0
- data/spec/rubocop/cops/lint/useless_comparison_spec.rb +31 -0
- data/spec/rubocop/cops/style/align_parameters_spec.rb +9 -0
- data/spec/rubocop/cops/style/and_or_spec.rb +12 -0
- data/spec/rubocop/cops/style/avoid_global_vars_spec.rb +1 -1
- data/spec/rubocop/cops/style/blocks_spec.rb +57 -14
- data/spec/rubocop/cops/style/character_literal_spec.rb +2 -2
- data/spec/rubocop/cops/style/comment_annotation_spec.rb +32 -4
- data/spec/rubocop/cops/style/dot_position_spec.rb +10 -0
- data/spec/rubocop/cops/style/empty_line_between_defs_spec.rb +12 -0
- data/spec/rubocop/cops/style/end_of_line_spec.rb +1 -0
- data/spec/rubocop/cops/style/favor_modifier_spec.rb +18 -0
- data/spec/rubocop/cops/style/hash_syntax_spec.rb +7 -2
- data/spec/rubocop/cops/style/module_function_spec.rb +30 -0
- data/spec/rubocop/cops/style/redundant_begin_spec.rb +2 -2
- data/spec/rubocop/cops/style/redundant_return_spec.rb +4 -4
- data/spec/rubocop/cops/style/redundant_self_spec.rb +36 -2
- data/spec/rubocop/cops/style/regexp_literal_spec.rb +1 -0
- data/spec/rubocop/cops/style/signal_exception_spec.rb +74 -0
- data/spec/rubocop/cops/style/string_literals_spec.rb +10 -0
- data/spec/rubocop/cops/style/symbol_name_spec.rb +13 -0
- data/spec/rubocop/cops/style/trivial_accessors_spec.rb +28 -3
- data/spec/rubocop/cops/variable_inspector_spec.rb +217 -36
- data/spec/rubocop/formatter/base_formatter_spec.rb +3 -3
- data/spec/rubocop/formatter/clang_style_formatter_spec.rb +19 -0
- data/spec/rubocop/formatter/disabled_config_formatter_spec.rb +48 -0
- data/spec/rubocop/formatter/formatter_set_spec.rb +1 -1
- data/spec/rubocop/processed_source_spec.rb +1 -1
- data/spec/spec_helper.rb +18 -13
- metadata +31 -38
@@ -120,7 +120,7 @@ module Rubocop
|
|
120
120
|
end
|
121
121
|
|
122
122
|
formatter.should_receive(:finished) do |processed_files|
|
123
|
-
expect(processed_files).to
|
123
|
+
expect(processed_files.size).to eq(2)
|
124
124
|
end
|
125
125
|
|
126
126
|
run
|
@@ -170,9 +170,9 @@ module Rubocop
|
|
170
170
|
.exactly(3).times do |file, offences|
|
171
171
|
case File.basename(file)
|
172
172
|
when '1_offence.rb'
|
173
|
-
expect(offences).to
|
173
|
+
expect(offences.size).to eq(1)
|
174
174
|
when '4_offences.rb'
|
175
|
-
expect(offences).to
|
175
|
+
expect(offences.size).to eq(4)
|
176
176
|
when 'no_offence.rb'
|
177
177
|
expect(offences).to be_empty
|
178
178
|
else
|
@@ -64,6 +64,25 @@ module Rubocop
|
|
64
64
|
'^^',
|
65
65
|
''].join("\n")
|
66
66
|
end
|
67
|
+
|
68
|
+
it 'does not display offending source line if it is blank' do
|
69
|
+
cop = Cop::Cop.new
|
70
|
+
source_buffer = Parser::Source::Buffer.new('test', 1)
|
71
|
+
source_buffer.source = ([' ', 'yaba']).to_a.join($RS)
|
72
|
+
cop.add_offence(:convention,
|
73
|
+
Parser::Source::Range.new(source_buffer, 0, 2),
|
74
|
+
'message 1')
|
75
|
+
cop.add_offence(:fatal,
|
76
|
+
Parser::Source::Range.new(source_buffer, 6, 4),
|
77
|
+
'message 2')
|
78
|
+
|
79
|
+
formatter.report_file('test', cop.offences)
|
80
|
+
expect(output.string).to eq ['test:1:1: C: message 1',
|
81
|
+
'test:2:1: F: message 2',
|
82
|
+
'yaba',
|
83
|
+
'^^^^',
|
84
|
+
''].join("\n")
|
85
|
+
end
|
67
86
|
end
|
68
87
|
end
|
69
88
|
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'stringio'
|
5
|
+
require 'ostruct'
|
6
|
+
|
7
|
+
module Rubocop
|
8
|
+
module Formatter
|
9
|
+
describe DisabledConfigFormatter do
|
10
|
+
let(:formatter) { DisabledConfigFormatter.new(output) }
|
11
|
+
let(:output) do
|
12
|
+
o = StringIO.new
|
13
|
+
def o.path
|
14
|
+
'rubocop-todo.yml'
|
15
|
+
end
|
16
|
+
o
|
17
|
+
end
|
18
|
+
let(:offences) do
|
19
|
+
[Rubocop::Cop::Offence.new(:convention, location, 'message', 'Cop1'),
|
20
|
+
Rubocop::Cop::Offence.new(:convention, location, 'message', 'Cop2')]
|
21
|
+
end
|
22
|
+
let(:location) { OpenStruct.new(line: 1, column: 5) }
|
23
|
+
before { $stdout = StringIO.new }
|
24
|
+
|
25
|
+
describe '#finished' do
|
26
|
+
it 'displays YAML configuration disabling all cops with offences' do
|
27
|
+
formatter.file_finished('test.rb', offences)
|
28
|
+
formatter.finished(['test.rb'])
|
29
|
+
expect(output.string).to eq(DisabledConfigFormatter::HEADING +
|
30
|
+
['',
|
31
|
+
'',
|
32
|
+
'Cop1:',
|
33
|
+
' Enabled: false',
|
34
|
+
'',
|
35
|
+
'Cop2:',
|
36
|
+
' Enabled: false',
|
37
|
+
''].join("\n"))
|
38
|
+
expect($stdout.string)
|
39
|
+
.to eq(['Created rubocop-todo.yml.',
|
40
|
+
'Run rubocop with --config rubocop-todo.yml, or',
|
41
|
+
'add inherit_from: rubocop-todo.yml in a .rubocop.yml ' +
|
42
|
+
'file.',
|
43
|
+
''].join("\n"))
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -33,7 +33,7 @@ module Rubocop
|
|
33
33
|
describe 'add_formatter' do
|
34
34
|
it 'adds a formatter to itself' do
|
35
35
|
formatter_set.add_formatter('simple')
|
36
|
-
expect(formatter_set).to
|
36
|
+
expect(formatter_set.size).to eq(1)
|
37
37
|
end
|
38
38
|
|
39
39
|
it 'adds a formatter with specified formatter type' do
|
data/spec/spec_helper.rb
CHANGED
@@ -12,19 +12,24 @@ if ENV['TRAVIS'] && RUBY_ENGINE == 'jruby'
|
|
12
12
|
ENV['TMPDIR'] = non_world_writable_tmp_dir
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
end
|
27
|
-
|
15
|
+
# Temporary disable the coverage report until Coveralls fix
|
16
|
+
# their API or we find a way to not break the TRAVIS build
|
17
|
+
# when Coveralls report error.
|
18
|
+
# SimpleCov raises similar IOError - stream closed when ran
|
19
|
+
# on Rubinius.
|
20
|
+
# if ENV['TRAVIS'] || ENV['COVERAGE']
|
21
|
+
# require 'simplecov'
|
22
|
+
|
23
|
+
# if ENV['TRAVIS']
|
24
|
+
# require 'coveralls'
|
25
|
+
# SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
26
|
+
# end
|
27
|
+
|
28
|
+
# SimpleCov.start do
|
29
|
+
# add_filter '/spec/'
|
30
|
+
# add_filter '/vendor/bundle/'
|
31
|
+
# end
|
32
|
+
# end
|
28
33
|
|
29
34
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
30
35
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
metadata
CHANGED
@@ -1,52 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.11.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Bozhidar Batsov
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-08-09 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rainbow
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 1.1.4
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 1.1.4
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: parser
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.0.0.
|
33
|
+
version: 2.0.0.pre6
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.0.0.
|
40
|
+
version: 2.0.0.pre6
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: backports
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: powerpack
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - '='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - '='
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rake
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ~>
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ~>
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -94,7 +83,6 @@ dependencies:
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: rspec
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - ~>
|
100
88
|
- !ruby/object:Gem::Version
|
@@ -102,7 +90,6 @@ dependencies:
|
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - ~>
|
108
95
|
- !ruby/object:Gem::Version
|
@@ -110,7 +97,6 @@ dependencies:
|
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: yard
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
101
|
- - ~>
|
116
102
|
- !ruby/object:Gem::Version
|
@@ -118,7 +104,6 @@ dependencies:
|
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
108
|
- - ~>
|
124
109
|
- !ruby/object:Gem::Version
|
@@ -126,7 +111,6 @@ dependencies:
|
|
126
111
|
- !ruby/object:Gem::Dependency
|
127
112
|
name: bundler
|
128
113
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
114
|
requirements:
|
131
115
|
- - ~>
|
132
116
|
- !ruby/object:Gem::Version
|
@@ -134,7 +118,6 @@ dependencies:
|
|
134
118
|
type: :development
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
121
|
requirements:
|
139
122
|
- - ~>
|
140
123
|
- !ruby/object:Gem::Version
|
@@ -142,7 +125,6 @@ dependencies:
|
|
142
125
|
- !ruby/object:Gem::Dependency
|
143
126
|
name: simplecov
|
144
127
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
128
|
requirements:
|
147
129
|
- - ~>
|
148
130
|
- !ruby/object:Gem::Version
|
@@ -150,13 +132,13 @@ dependencies:
|
|
150
132
|
type: :development
|
151
133
|
prerelease: false
|
152
134
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
135
|
requirements:
|
155
136
|
- - ~>
|
156
137
|
- !ruby/object:Gem::Version
|
157
138
|
version: '0.7'
|
158
|
-
description:
|
159
|
-
|
139
|
+
description: |2
|
140
|
+
Automatic Ruby code style checking tool.
|
141
|
+
Aims to enforce the community-driven Ruby Style Guide.
|
160
142
|
email: bozhidar@batsov.com
|
161
143
|
executables:
|
162
144
|
- rubocop
|
@@ -201,6 +183,8 @@ files:
|
|
201
183
|
- lib/rubocop/cop/lint/shadowing_outer_local_variable.rb
|
202
184
|
- lib/rubocop/cop/lint/unreachable_code.rb
|
203
185
|
- lib/rubocop/cop/lint/unused_local_variable.rb
|
186
|
+
- lib/rubocop/cop/lint/useless_assignment.rb
|
187
|
+
- lib/rubocop/cop/lint/useless_comparison.rb
|
204
188
|
- lib/rubocop/cop/lint/void.rb
|
205
189
|
- lib/rubocop/cop/offence.rb
|
206
190
|
- lib/rubocop/cop/rails/validation.rb
|
@@ -252,6 +236,7 @@ files:
|
|
252
236
|
- lib/rubocop/cop/style/method_and_variable_snake_case.rb
|
253
237
|
- lib/rubocop/cop/style/method_call_parentheses.rb
|
254
238
|
- lib/rubocop/cop/style/method_length.rb
|
239
|
+
- lib/rubocop/cop/style/module_function.rb
|
255
240
|
- lib/rubocop/cop/style/multiline_if_then.rb
|
256
241
|
- lib/rubocop/cop/style/not.rb
|
257
242
|
- lib/rubocop/cop/style/numeric_literals.rb
|
@@ -267,6 +252,7 @@ files:
|
|
267
252
|
- lib/rubocop/cop/style/regexp_literal.rb
|
268
253
|
- lib/rubocop/cop/style/rescue_modifier.rb
|
269
254
|
- lib/rubocop/cop/style/semicolon.rb
|
255
|
+
- lib/rubocop/cop/style/signal_exception.rb
|
270
256
|
- lib/rubocop/cop/style/single_line_methods.rb
|
271
257
|
- lib/rubocop/cop/style/space_after_comma_etc.rb
|
272
258
|
- lib/rubocop/cop/style/space_after_control_keyword.rb
|
@@ -287,6 +273,7 @@ files:
|
|
287
273
|
- lib/rubocop/cop/variable_inspector.rb
|
288
274
|
- lib/rubocop/formatter/base_formatter.rb
|
289
275
|
- lib/rubocop/formatter/clang_style_formatter.rb
|
276
|
+
- lib/rubocop/formatter/disabled_config_formatter.rb
|
290
277
|
- lib/rubocop/formatter/emacs_style_formatter.rb
|
291
278
|
- lib/rubocop/formatter/file_list_formatter.rb
|
292
279
|
- lib/rubocop/formatter/formatter_set.rb
|
@@ -322,6 +309,8 @@ files:
|
|
322
309
|
- spec/rubocop/cops/lint/shadowing_outer_local_variable_spec.rb
|
323
310
|
- spec/rubocop/cops/lint/unreachable_code_spec.rb
|
324
311
|
- spec/rubocop/cops/lint/unused_local_variable_spec.rb
|
312
|
+
- spec/rubocop/cops/lint/useless_assignment_spec.rb
|
313
|
+
- spec/rubocop/cops/lint/useless_comparison_spec.rb
|
325
314
|
- spec/rubocop/cops/lint/void_spec.rb
|
326
315
|
- spec/rubocop/cops/offence_spec.rb
|
327
316
|
- spec/rubocop/cops/rails/validation_spec.rb
|
@@ -374,6 +363,7 @@ files:
|
|
374
363
|
- spec/rubocop/cops/style/method_and_variable_snake_case_spec.rb
|
375
364
|
- spec/rubocop/cops/style/method_call_parentheses_spec.rb
|
376
365
|
- spec/rubocop/cops/style/method_length_spec.rb
|
366
|
+
- spec/rubocop/cops/style/module_function_spec.rb
|
377
367
|
- spec/rubocop/cops/style/multiline_if_then_spec.rb
|
378
368
|
- spec/rubocop/cops/style/not_spec.rb
|
379
369
|
- spec/rubocop/cops/style/numeric_literals_spec.rb
|
@@ -389,6 +379,7 @@ files:
|
|
389
379
|
- spec/rubocop/cops/style/regexp_literal_spec.rb
|
390
380
|
- spec/rubocop/cops/style/rescue_modifier_spec.rb
|
391
381
|
- spec/rubocop/cops/style/semicolon_spec.rb
|
382
|
+
- spec/rubocop/cops/style/signal_exception_spec.rb
|
392
383
|
- spec/rubocop/cops/style/single_line_methods_spec.rb
|
393
384
|
- spec/rubocop/cops/style/space_after_colon_spec.rb
|
394
385
|
- spec/rubocop/cops/style/space_after_comma_spec.rb
|
@@ -415,6 +406,7 @@ files:
|
|
415
406
|
- spec/rubocop/cops/variable_inspector_spec.rb
|
416
407
|
- spec/rubocop/formatter/base_formatter_spec.rb
|
417
408
|
- spec/rubocop/formatter/clang_style_formatter_spec.rb
|
409
|
+
- spec/rubocop/formatter/disabled_config_formatter_spec.rb
|
418
410
|
- spec/rubocop/formatter/emacs_style_formatter_spec.rb
|
419
411
|
- spec/rubocop/formatter/file_list_formatter_spec.rb
|
420
412
|
- spec/rubocop/formatter/formatter_set_spec.rb
|
@@ -433,30 +425,26 @@ files:
|
|
433
425
|
homepage: http://github.com/bbatsov/rubocop
|
434
426
|
licenses:
|
435
427
|
- MIT
|
428
|
+
metadata: {}
|
436
429
|
post_install_message:
|
437
430
|
rdoc_options: []
|
438
431
|
require_paths:
|
439
432
|
- lib
|
440
433
|
required_ruby_version: !ruby/object:Gem::Requirement
|
441
|
-
none: false
|
442
434
|
requirements:
|
443
|
-
- -
|
435
|
+
- - '>='
|
444
436
|
- !ruby/object:Gem::Version
|
445
437
|
version: 1.9.2
|
446
438
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
447
|
-
none: false
|
448
439
|
requirements:
|
449
|
-
- -
|
440
|
+
- - '>='
|
450
441
|
- !ruby/object:Gem::Version
|
451
442
|
version: '0'
|
452
|
-
segments:
|
453
|
-
- 0
|
454
|
-
hash: 1297865903551082262
|
455
443
|
requirements: []
|
456
444
|
rubyforge_project:
|
457
|
-
rubygems_version:
|
445
|
+
rubygems_version: 2.0.3
|
458
446
|
signing_key:
|
459
|
-
specification_version:
|
447
|
+
specification_version: 4
|
460
448
|
summary: Automatic Ruby code style checking tool.
|
461
449
|
test_files:
|
462
450
|
- spec/.rubocop.yml
|
@@ -481,6 +469,8 @@ test_files:
|
|
481
469
|
- spec/rubocop/cops/lint/shadowing_outer_local_variable_spec.rb
|
482
470
|
- spec/rubocop/cops/lint/unreachable_code_spec.rb
|
483
471
|
- spec/rubocop/cops/lint/unused_local_variable_spec.rb
|
472
|
+
- spec/rubocop/cops/lint/useless_assignment_spec.rb
|
473
|
+
- spec/rubocop/cops/lint/useless_comparison_spec.rb
|
484
474
|
- spec/rubocop/cops/lint/void_spec.rb
|
485
475
|
- spec/rubocop/cops/offence_spec.rb
|
486
476
|
- spec/rubocop/cops/rails/validation_spec.rb
|
@@ -533,6 +523,7 @@ test_files:
|
|
533
523
|
- spec/rubocop/cops/style/method_and_variable_snake_case_spec.rb
|
534
524
|
- spec/rubocop/cops/style/method_call_parentheses_spec.rb
|
535
525
|
- spec/rubocop/cops/style/method_length_spec.rb
|
526
|
+
- spec/rubocop/cops/style/module_function_spec.rb
|
536
527
|
- spec/rubocop/cops/style/multiline_if_then_spec.rb
|
537
528
|
- spec/rubocop/cops/style/not_spec.rb
|
538
529
|
- spec/rubocop/cops/style/numeric_literals_spec.rb
|
@@ -548,6 +539,7 @@ test_files:
|
|
548
539
|
- spec/rubocop/cops/style/regexp_literal_spec.rb
|
549
540
|
- spec/rubocop/cops/style/rescue_modifier_spec.rb
|
550
541
|
- spec/rubocop/cops/style/semicolon_spec.rb
|
542
|
+
- spec/rubocop/cops/style/signal_exception_spec.rb
|
551
543
|
- spec/rubocop/cops/style/single_line_methods_spec.rb
|
552
544
|
- spec/rubocop/cops/style/space_after_colon_spec.rb
|
553
545
|
- spec/rubocop/cops/style/space_after_comma_spec.rb
|
@@ -574,6 +566,7 @@ test_files:
|
|
574
566
|
- spec/rubocop/cops/variable_inspector_spec.rb
|
575
567
|
- spec/rubocop/formatter/base_formatter_spec.rb
|
576
568
|
- spec/rubocop/formatter/clang_style_formatter_spec.rb
|
569
|
+
- spec/rubocop/formatter/disabled_config_formatter_spec.rb
|
577
570
|
- spec/rubocop/formatter/emacs_style_formatter_spec.rb
|
578
571
|
- spec/rubocop/formatter/file_list_formatter_spec.rb
|
579
572
|
- spec/rubocop/formatter/formatter_set_spec.rb
|