tailor 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.tailor +1 -0
- data/Gemfile.lock +1 -1
- data/History.rdoc +34 -0
- data/README.rdoc +17 -1
- data/features/valid_ruby.feature +1 -1
- data/lib/ext/string_ext.rb +0 -4
- data/lib/tailor/cli/options.rb +9 -2
- data/lib/tailor/configuration.rb +103 -150
- data/lib/tailor/configuration/file_set.rb +110 -0
- data/lib/tailor/formatters/text.rb +108 -79
- data/lib/tailor/rake_task.rb +148 -0
- data/lib/tailor/tailorrc.erb +1 -1
- data/lib/tailor/version.rb +1 -1
- data/spec/functional/configuration_spec.rb +244 -0
- data/spec/functional/horizontal_spacing/braces_spec.rb +238 -0
- data/spec/functional/horizontal_spacing/brackets_spec.rb +88 -0
- data/spec/functional/horizontal_spacing/comma_spacing_spec.rb +68 -0
- data/spec/functional/horizontal_spacing/hard_tabs_spec.rb +110 -0
- data/spec/functional/horizontal_spacing/long_lines_spec.rb +51 -0
- data/spec/functional/horizontal_spacing/parens_spec.rb +102 -0
- data/spec/functional/horizontal_spacing/trailing_whitespace_spec.rb +66 -0
- data/spec/functional/horizontal_spacing_spec.rb +59 -0
- data/spec/functional/indentation_spacing/bad_indentation_spec.rb +372 -0
- data/spec/functional/indentation_spacing_spec.rb +85 -0
- data/spec/functional/naming/camel_case_methods_spec.rb +56 -0
- data/spec/functional/naming/screaming_snake_case_classes_spec.rb +83 -0
- data/spec/functional/naming_spec.rb +35 -0
- data/spec/functional/vertical_spacing/class_length_spec.rb +67 -0
- data/spec/functional/vertical_spacing/method_length_spec.rb +61 -0
- data/spec/functional/vertical_spacing_spec.rb +35 -0
- data/spec/support/bad_indentation_cases.rb +265 -0
- data/{features/support/file_cases/indentation_cases.rb → spec/support/good_indentation_cases.rb} +6 -266
- data/spec/support/horizontal_spacing_cases.rb +136 -0
- data/spec/support/naming_cases.rb +26 -0
- data/{features/support/file_cases → spec/support}/vertical_spacing_cases.rb +0 -33
- data/spec/{tailor → unit/tailor}/cli_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/composite_observable_spec.rb +1 -1
- data/spec/unit/tailor/configuration/file_set_spec.rb +65 -0
- data/spec/{tailor → unit/tailor}/configuration/style_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/configuration_spec.rb +1 -59
- data/spec/{tailor → unit/tailor}/critic_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/formatter_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/lexed_line_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/lexer/token_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/lexer_spec.rb +1 -2
- data/spec/{tailor → unit/tailor}/options_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/problem_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/reporter_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/ruler_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/rulers/indentation_spaces_ruler/indentation_manager_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/rulers/indentation_spaces_ruler_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/rulers/spaces_after_comma_ruler_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/rulers/spaces_after_lbrace_ruler_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/rulers/spaces_before_lbrace_ruler_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/rulers/spaces_before_rbrace_ruler_spec.rb +1 -1
- data/spec/{tailor → unit/tailor}/rulers_spec.rb +1 -1
- data/spec/unit/tailor/version_spec.rb +6 -0
- data/spec/{tailor_spec.rb → unit/tailor_spec.rb} +1 -1
- data/tasks/spec.rake +8 -3
- metadata +121 -93
- data/features/horizontal_spacing.feature +0 -263
- data/features/indentation/bad_files_with_no_trailing_newline.feature +0 -91
- data/features/indentation/good_files_with_no_trailing_newline.feature +0 -219
- data/features/name_detection.feature +0 -72
- data/features/support/file_cases/horizontal_spacing_cases.rb +0 -266
- data/features/support/file_cases/naming_cases.rb +0 -51
- data/features/vertical_spacing.feature +0 -135
- data/m.rb +0 -15
- data/spec/tailor/version_spec.rb +0 -6
@@ -1,5 +1,4 @@
|
|
1
1
|
V_SPACING_OK = {}
|
2
|
-
V_SPACING_1 = {}
|
3
2
|
|
4
3
|
#-------------------------------------------------------------------------------
|
5
4
|
# Class length
|
@@ -19,25 +18,6 @@ V_SPACING_OK[:embedded_class_five_code_lines] =
|
|
19
18
|
end
|
20
19
|
end}
|
21
20
|
|
22
|
-
V_SPACING_1[:class_too_long] =
|
23
|
-
%Q{class Party
|
24
|
-
include Clowns
|
25
|
-
include Pizza
|
26
|
-
|
27
|
-
def barrel_roll
|
28
|
-
puts "DOABARRELROLL!"
|
29
|
-
end
|
30
|
-
end}
|
31
|
-
|
32
|
-
V_SPACING_1[:parent_class_too_long] =
|
33
|
-
%Q{class Party
|
34
|
-
|
35
|
-
class Pizza
|
36
|
-
include Cheese
|
37
|
-
include Yumminess
|
38
|
-
end
|
39
|
-
end}
|
40
|
-
|
41
21
|
#-------------------------------------------------------------------------------
|
42
22
|
# Method length
|
43
23
|
#-------------------------------------------------------------------------------
|
@@ -54,16 +34,3 @@ V_SPACING_OK[:embedded_method_3_code_lines] =
|
|
54
34
|
|
55
35
|
|
56
36
|
end}
|
57
|
-
|
58
|
-
V_SPACING_1[:method_too_long] =
|
59
|
-
%Q{def thing
|
60
|
-
puts
|
61
|
-
puts
|
62
|
-
end}
|
63
|
-
|
64
|
-
V_SPACING_1[:parent_method_too_long] =
|
65
|
-
%Q{def thing
|
66
|
-
puts
|
67
|
-
def inner_thing; print '1'; end
|
68
|
-
puts
|
69
|
-
end}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require_relative '../../../spec_helper'
|
2
|
+
require 'tailor/configuration/file_set'
|
3
|
+
|
4
|
+
|
5
|
+
describe Tailor::Configuration::FileSet do
|
6
|
+
describe '#build_file_list' do
|
7
|
+
context 'param is a file name' do
|
8
|
+
context 'the file exists' do
|
9
|
+
before do
|
10
|
+
FileUtils.touch './test.rb'
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'builds an Array with that file\'s expanded path' do
|
14
|
+
new_list = subject.instance_eval { build_file_list('./test.rb') }
|
15
|
+
new_list.should be_an Array
|
16
|
+
new_list.first.should match /.+\/test.rb$/
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
context 'the file does not exist' do
|
21
|
+
it "returns an empty Array" do
|
22
|
+
subject.instance_eval { build_file_list('test.rb') }.should == []
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
context 'when param is an Array' do
|
28
|
+
before do
|
29
|
+
FileUtils.touch './test.rb'
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'returns the Array with expanded file paths' do
|
33
|
+
subject.instance_eval { build_file_list(['test.rb']) }.
|
34
|
+
first.should match /.+\/test.rb$/
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
context 'when param is a directory' do
|
39
|
+
before do
|
40
|
+
FileUtils.mkdir 'test'
|
41
|
+
FileUtils.touch 'test/test.rb'
|
42
|
+
end
|
43
|
+
|
44
|
+
it 'returns the expanded file paths in that directory' do
|
45
|
+
list = subject.instance_eval { build_file_list('test') }
|
46
|
+
list.size.should be 1
|
47
|
+
list.first.should match /.+\/test.rb/
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe '#update_file_list' do
|
53
|
+
before do
|
54
|
+
subject.instance_variable_set(:@file_list, ['first.rb'])
|
55
|
+
FileUtils.touch 'test2.rb'
|
56
|
+
end
|
57
|
+
|
58
|
+
it 'builds the file list and concats that to @file_list' do
|
59
|
+
subject.update_file_list('test2.rb')
|
60
|
+
subject.instance_variable_get(:@file_list).size.should be 2
|
61
|
+
subject.instance_variable_get(:@file_list).last.
|
62
|
+
should match /.+\/test2.rb/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require_relative '
|
1
|
+
require_relative '../../spec_helper'
|
2
2
|
require 'tailor/configuration'
|
3
3
|
|
4
4
|
describe Tailor::Configuration do
|
@@ -105,62 +105,4 @@ describe Tailor::Configuration do
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
end
|
108
|
-
|
109
|
-
describe "#file_list" do
|
110
|
-
before do
|
111
|
-
FileUtils.mkdir_p 'one/two'
|
112
|
-
File.new('one/two/three.rb', 'w') { |f| f.write "stuff" }
|
113
|
-
end
|
114
|
-
|
115
|
-
context "glob is an Array" do
|
116
|
-
context "the Array has files" do
|
117
|
-
it "returns all files in the glob" do
|
118
|
-
results = subject.file_list(['one/two/three.rb'])
|
119
|
-
results.last.should match /one\/two\/three.rb/
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
context "the Array has a directory" do
|
124
|
-
context "the directory has files" do
|
125
|
-
it "returns all files in the directory" do
|
126
|
-
results = subject.file_list(['.'])
|
127
|
-
results.last.should match /one\/two\/three.rb/
|
128
|
-
end
|
129
|
-
end
|
130
|
-
|
131
|
-
context "the directory is empty" do
|
132
|
-
before do
|
133
|
-
FileUtils.mkdir 'empty'
|
134
|
-
FileUtils.rm_rf 'one'
|
135
|
-
end
|
136
|
-
|
137
|
-
it "returns an empty Array" do
|
138
|
-
results = subject.file_list(['.'])
|
139
|
-
results.should == []
|
140
|
-
end
|
141
|
-
end
|
142
|
-
end
|
143
|
-
end
|
144
|
-
|
145
|
-
context "glob is a glob" do
|
146
|
-
it "returns all files in the glob" do
|
147
|
-
results = subject.file_list('one/**/*.rb')
|
148
|
-
results.last.should match /one\/two\/three.rb/
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
context "glob is a directory" do
|
153
|
-
it "returns all files in the glob" do
|
154
|
-
results = subject.file_list('one')
|
155
|
-
results.last.should match /one\/two\/three.rb/
|
156
|
-
end
|
157
|
-
end
|
158
|
-
|
159
|
-
context "glob is a file" do
|
160
|
-
it "returns all files in the glob" do
|
161
|
-
subject.file_list('one/two/three.rb').last.
|
162
|
-
should match /one\/two\/three.rb/
|
163
|
-
end
|
164
|
-
end
|
165
|
-
end
|
166
108
|
end
|
data/tasks/spec.rake
CHANGED
@@ -8,9 +8,14 @@ namespace :spec do
|
|
8
8
|
t.ruby_opts = %w(-w)
|
9
9
|
end
|
10
10
|
|
11
|
-
desc "Run
|
12
|
-
RSpec::Core::RakeTask.new(:
|
13
|
-
t.pattern = "./spec/
|
11
|
+
desc "Run unit tests"
|
12
|
+
RSpec::Core::RakeTask.new(:unit) do |t|
|
13
|
+
t.pattern = "./spec/unit/**/*_spec.rb"
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "Run functional tests"
|
17
|
+
RSpec::Core::RakeTask.new(:functional) do |t|
|
18
|
+
t.pattern = "./spec/functional/**/*_spec.rb"
|
14
19
|
end
|
15
20
|
end
|
16
21
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tailor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: log_switch
|
16
|
-
requirement: &
|
16
|
+
requirement: &70168375173620 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.3.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70168375173620
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: term-ansicolor
|
27
|
-
requirement: &
|
27
|
+
requirement: &70168375173120 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.0.5
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70168375173120
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: text-table
|
38
|
-
requirement: &
|
38
|
+
requirement: &70168375172660 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.2.2
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70168375172660
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: aruba
|
49
|
-
requirement: &
|
49
|
+
requirement: &70168375172120 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70168375172120
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: bundler
|
60
|
-
requirement: &
|
60
|
+
requirement: &70168375171640 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70168375171640
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: code_statistics
|
71
|
-
requirement: &
|
71
|
+
requirement: &70168375171180 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70168375171180
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: cucumber
|
82
|
-
requirement: &
|
82
|
+
requirement: &70168375170700 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 1.0.2
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70168375170700
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: fakefs
|
93
|
-
requirement: &
|
93
|
+
requirement: &70168375170180 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 0.4.0
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70168375170180
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: rake
|
104
|
-
requirement: &
|
104
|
+
requirement: &70168375169660 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70168375169660
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: roodi
|
115
|
-
requirement: &
|
115
|
+
requirement: &70168375169200 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: 2.1.0
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70168375169200
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: rspec
|
126
|
-
requirement: &
|
126
|
+
requirement: &70168375168740 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: 2.5.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *70168375168740
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: simplecov
|
137
|
-
requirement: &
|
137
|
+
requirement: &70168375168280 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: 0.4.0
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *70168375168280
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: yard
|
148
|
-
requirement: &
|
148
|
+
requirement: &70168375167820 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: 0.7.0
|
154
154
|
type: :development
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *70168375167820
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: yard-cucumber
|
159
|
-
requirement: &
|
159
|
+
requirement: &70168375167360 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ! '>='
|
@@ -164,7 +164,7 @@ dependencies:
|
|
164
164
|
version: 2.1.7
|
165
165
|
type: :development
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *70168375167360
|
168
168
|
description: ! 'tailor parses Ruby files and measures them with some style and static
|
169
169
|
analysis
|
170
170
|
|
@@ -201,30 +201,22 @@ files:
|
|
201
201
|
- Rakefile
|
202
202
|
- bin/tailor
|
203
203
|
- features/configurable.feature
|
204
|
-
- features/horizontal_spacing.feature
|
205
204
|
- features/indentation.feature
|
206
|
-
- features/indentation/bad_files_with_no_trailing_newline.feature
|
207
|
-
- features/indentation/good_files_with_no_trailing_newline.feature
|
208
|
-
- features/name_detection.feature
|
209
205
|
- features/step_definitions/indentation_steps.rb
|
210
206
|
- features/support/env.rb
|
211
|
-
- features/support/file_cases/horizontal_spacing_cases.rb
|
212
|
-
- features/support/file_cases/indentation_cases.rb
|
213
|
-
- features/support/file_cases/naming_cases.rb
|
214
|
-
- features/support/file_cases/vertical_spacing_cases.rb
|
215
207
|
- features/support/hooks.rb
|
216
208
|
- features/support/legacy/bad_op_spacing.rb
|
217
209
|
- features/support/legacy/bad_ternary_colon_spacing.rb
|
218
210
|
- features/support/legacy/long_file_with_indentation.rb
|
219
211
|
- features/support/world.rb
|
220
212
|
- features/valid_ruby.feature
|
221
|
-
- features/vertical_spacing.feature
|
222
213
|
- lib/ext/string_ext.rb
|
223
214
|
- lib/tailor.rb
|
224
215
|
- lib/tailor/cli.rb
|
225
216
|
- lib/tailor/cli/options.rb
|
226
217
|
- lib/tailor/composite_observable.rb
|
227
218
|
- lib/tailor/configuration.rb
|
219
|
+
- lib/tailor/configuration/file_set.rb
|
228
220
|
- lib/tailor/configuration/style.rb
|
229
221
|
- lib/tailor/critic.rb
|
230
222
|
- lib/tailor/formatter.rb
|
@@ -263,30 +255,52 @@ files:
|
|
263
255
|
- lib/tailor/runtime_error.rb
|
264
256
|
- lib/tailor/tailorrc.erb
|
265
257
|
- lib/tailor/version.rb
|
266
|
-
-
|
258
|
+
- spec/functional/configuration_spec.rb
|
259
|
+
- spec/functional/horizontal_spacing/braces_spec.rb
|
260
|
+
- spec/functional/horizontal_spacing/brackets_spec.rb
|
261
|
+
- spec/functional/horizontal_spacing/comma_spacing_spec.rb
|
262
|
+
- spec/functional/horizontal_spacing/hard_tabs_spec.rb
|
263
|
+
- spec/functional/horizontal_spacing/long_lines_spec.rb
|
264
|
+
- spec/functional/horizontal_spacing/parens_spec.rb
|
265
|
+
- spec/functional/horizontal_spacing/trailing_whitespace_spec.rb
|
266
|
+
- spec/functional/horizontal_spacing_spec.rb
|
267
|
+
- spec/functional/indentation_spacing/bad_indentation_spec.rb
|
268
|
+
- spec/functional/indentation_spacing_spec.rb
|
269
|
+
- spec/functional/naming/camel_case_methods_spec.rb
|
270
|
+
- spec/functional/naming/screaming_snake_case_classes_spec.rb
|
271
|
+
- spec/functional/naming_spec.rb
|
272
|
+
- spec/functional/vertical_spacing/class_length_spec.rb
|
273
|
+
- spec/functional/vertical_spacing/method_length_spec.rb
|
274
|
+
- spec/functional/vertical_spacing_spec.rb
|
267
275
|
- spec/spec_helper.rb
|
268
|
-
- spec/
|
269
|
-
- spec/
|
270
|
-
- spec/
|
271
|
-
- spec/
|
272
|
-
- spec/
|
273
|
-
- spec/tailor/
|
274
|
-
- spec/tailor/
|
275
|
-
- spec/tailor/
|
276
|
-
- spec/tailor/
|
277
|
-
- spec/tailor/
|
278
|
-
- spec/tailor/
|
279
|
-
- spec/tailor/
|
280
|
-
- spec/tailor/
|
281
|
-
- spec/tailor/
|
282
|
-
- spec/tailor/
|
283
|
-
- spec/tailor/
|
284
|
-
- spec/tailor/
|
285
|
-
- spec/tailor/
|
286
|
-
- spec/tailor/
|
287
|
-
- spec/tailor/
|
288
|
-
- spec/tailor/
|
289
|
-
- spec/
|
276
|
+
- spec/support/bad_indentation_cases.rb
|
277
|
+
- spec/support/good_indentation_cases.rb
|
278
|
+
- spec/support/horizontal_spacing_cases.rb
|
279
|
+
- spec/support/naming_cases.rb
|
280
|
+
- spec/support/vertical_spacing_cases.rb
|
281
|
+
- spec/unit/tailor/cli_spec.rb
|
282
|
+
- spec/unit/tailor/composite_observable_spec.rb
|
283
|
+
- spec/unit/tailor/configuration/file_set_spec.rb
|
284
|
+
- spec/unit/tailor/configuration/style_spec.rb
|
285
|
+
- spec/unit/tailor/configuration_spec.rb
|
286
|
+
- spec/unit/tailor/critic_spec.rb
|
287
|
+
- spec/unit/tailor/formatter_spec.rb
|
288
|
+
- spec/unit/tailor/lexed_line_spec.rb
|
289
|
+
- spec/unit/tailor/lexer/token_spec.rb
|
290
|
+
- spec/unit/tailor/lexer_spec.rb
|
291
|
+
- spec/unit/tailor/options_spec.rb
|
292
|
+
- spec/unit/tailor/problem_spec.rb
|
293
|
+
- spec/unit/tailor/reporter_spec.rb
|
294
|
+
- spec/unit/tailor/ruler_spec.rb
|
295
|
+
- spec/unit/tailor/rulers/indentation_spaces_ruler/indentation_manager_spec.rb
|
296
|
+
- spec/unit/tailor/rulers/indentation_spaces_ruler_spec.rb
|
297
|
+
- spec/unit/tailor/rulers/spaces_after_comma_ruler_spec.rb
|
298
|
+
- spec/unit/tailor/rulers/spaces_after_lbrace_ruler_spec.rb
|
299
|
+
- spec/unit/tailor/rulers/spaces_before_lbrace_ruler_spec.rb
|
300
|
+
- spec/unit/tailor/rulers/spaces_before_rbrace_ruler_spec.rb
|
301
|
+
- spec/unit/tailor/rulers_spec.rb
|
302
|
+
- spec/unit/tailor/version_spec.rb
|
303
|
+
- spec/unit/tailor_spec.rb
|
290
304
|
- tailor.gemspec
|
291
305
|
- tasks/features.rake
|
292
306
|
- tasks/roodi.rake
|
@@ -321,45 +335,59 @@ specification_version: 3
|
|
321
335
|
summary: A Ruby style & complexity measurer
|
322
336
|
test_files:
|
323
337
|
- features/configurable.feature
|
324
|
-
- features/horizontal_spacing.feature
|
325
338
|
- features/indentation.feature
|
326
|
-
- features/indentation/bad_files_with_no_trailing_newline.feature
|
327
|
-
- features/indentation/good_files_with_no_trailing_newline.feature
|
328
|
-
- features/name_detection.feature
|
329
339
|
- features/step_definitions/indentation_steps.rb
|
330
340
|
- features/support/env.rb
|
331
|
-
- features/support/file_cases/horizontal_spacing_cases.rb
|
332
|
-
- features/support/file_cases/indentation_cases.rb
|
333
|
-
- features/support/file_cases/naming_cases.rb
|
334
|
-
- features/support/file_cases/vertical_spacing_cases.rb
|
335
341
|
- features/support/hooks.rb
|
336
342
|
- features/support/legacy/bad_op_spacing.rb
|
337
343
|
- features/support/legacy/bad_ternary_colon_spacing.rb
|
338
344
|
- features/support/legacy/long_file_with_indentation.rb
|
339
345
|
- features/support/world.rb
|
340
346
|
- features/valid_ruby.feature
|
341
|
-
-
|
347
|
+
- spec/functional/configuration_spec.rb
|
348
|
+
- spec/functional/horizontal_spacing/braces_spec.rb
|
349
|
+
- spec/functional/horizontal_spacing/brackets_spec.rb
|
350
|
+
- spec/functional/horizontal_spacing/comma_spacing_spec.rb
|
351
|
+
- spec/functional/horizontal_spacing/hard_tabs_spec.rb
|
352
|
+
- spec/functional/horizontal_spacing/long_lines_spec.rb
|
353
|
+
- spec/functional/horizontal_spacing/parens_spec.rb
|
354
|
+
- spec/functional/horizontal_spacing/trailing_whitespace_spec.rb
|
355
|
+
- spec/functional/horizontal_spacing_spec.rb
|
356
|
+
- spec/functional/indentation_spacing/bad_indentation_spec.rb
|
357
|
+
- spec/functional/indentation_spacing_spec.rb
|
358
|
+
- spec/functional/naming/camel_case_methods_spec.rb
|
359
|
+
- spec/functional/naming/screaming_snake_case_classes_spec.rb
|
360
|
+
- spec/functional/naming_spec.rb
|
361
|
+
- spec/functional/vertical_spacing/class_length_spec.rb
|
362
|
+
- spec/functional/vertical_spacing/method_length_spec.rb
|
363
|
+
- spec/functional/vertical_spacing_spec.rb
|
342
364
|
- spec/spec_helper.rb
|
343
|
-
- spec/
|
344
|
-
- spec/
|
345
|
-
- spec/
|
346
|
-
- spec/
|
347
|
-
- spec/
|
348
|
-
- spec/tailor/
|
349
|
-
- spec/tailor/
|
350
|
-
- spec/tailor/
|
351
|
-
- spec/tailor/
|
352
|
-
- spec/tailor/
|
353
|
-
- spec/tailor/
|
354
|
-
- spec/tailor/
|
355
|
-
- spec/tailor/
|
356
|
-
- spec/tailor/
|
357
|
-
- spec/tailor/
|
358
|
-
- spec/tailor/
|
359
|
-
- spec/tailor/
|
360
|
-
- spec/tailor/
|
361
|
-
- spec/tailor/
|
362
|
-
- spec/tailor/
|
363
|
-
- spec/tailor/
|
364
|
-
- spec/
|
365
|
+
- spec/support/bad_indentation_cases.rb
|
366
|
+
- spec/support/good_indentation_cases.rb
|
367
|
+
- spec/support/horizontal_spacing_cases.rb
|
368
|
+
- spec/support/naming_cases.rb
|
369
|
+
- spec/support/vertical_spacing_cases.rb
|
370
|
+
- spec/unit/tailor/cli_spec.rb
|
371
|
+
- spec/unit/tailor/composite_observable_spec.rb
|
372
|
+
- spec/unit/tailor/configuration/file_set_spec.rb
|
373
|
+
- spec/unit/tailor/configuration/style_spec.rb
|
374
|
+
- spec/unit/tailor/configuration_spec.rb
|
375
|
+
- spec/unit/tailor/critic_spec.rb
|
376
|
+
- spec/unit/tailor/formatter_spec.rb
|
377
|
+
- spec/unit/tailor/lexed_line_spec.rb
|
378
|
+
- spec/unit/tailor/lexer/token_spec.rb
|
379
|
+
- spec/unit/tailor/lexer_spec.rb
|
380
|
+
- spec/unit/tailor/options_spec.rb
|
381
|
+
- spec/unit/tailor/problem_spec.rb
|
382
|
+
- spec/unit/tailor/reporter_spec.rb
|
383
|
+
- spec/unit/tailor/ruler_spec.rb
|
384
|
+
- spec/unit/tailor/rulers/indentation_spaces_ruler/indentation_manager_spec.rb
|
385
|
+
- spec/unit/tailor/rulers/indentation_spaces_ruler_spec.rb
|
386
|
+
- spec/unit/tailor/rulers/spaces_after_comma_ruler_spec.rb
|
387
|
+
- spec/unit/tailor/rulers/spaces_after_lbrace_ruler_spec.rb
|
388
|
+
- spec/unit/tailor/rulers/spaces_before_lbrace_ruler_spec.rb
|
389
|
+
- spec/unit/tailor/rulers/spaces_before_rbrace_ruler_spec.rb
|
390
|
+
- spec/unit/tailor/rulers_spec.rb
|
391
|
+
- spec/unit/tailor/version_spec.rb
|
392
|
+
- spec/unit/tailor_spec.rb
|
365
393
|
has_rdoc:
|