ruby-lint 0.0.1a → 0.0.1a1
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +1 -1
- data/MANIFEST +65 -62
- data/README.md +114 -13
- data/bin/ruby-lint +6 -0
- data/lib/ruby-lint.rb +36 -0
- data/lib/{rlint → ruby-lint}/analyze/coding_style.rb +32 -32
- data/lib/{rlint → ruby-lint}/analyze/definitions.rb +13 -13
- data/lib/{rlint → ruby-lint}/analyze/method_validation.rb +5 -5
- data/lib/{rlint → ruby-lint}/analyze/shadowing_variables.rb +5 -5
- data/lib/{rlint → ruby-lint}/analyze/undefined_variables.rb +7 -7
- data/lib/{rlint → ruby-lint}/analyze/unused_variables.rb +6 -6
- data/lib/{rlint → ruby-lint}/callback.rb +11 -11
- data/lib/{rlint → ruby-lint}/cli.rb +17 -17
- data/lib/{rlint → ruby-lint}/constant_importer.rb +18 -8
- data/lib/{rlint → ruby-lint}/definition.rb +10 -10
- data/lib/{rlint → ruby-lint}/formatter/text.rb +6 -6
- data/lib/{rlint → ruby-lint}/helper/definition_resolver.rb +11 -11
- data/lib/{rlint → ruby-lint}/helper/scoping.rb +14 -14
- data/lib/{rlint → ruby-lint}/iterator.rb +22 -22
- data/lib/{rlint → ruby-lint}/options.rb +9 -9
- data/lib/{rlint → ruby-lint}/parser.rb +111 -111
- data/lib/{rlint → ruby-lint}/parser_error.rb +3 -3
- data/lib/{rlint → ruby-lint}/report.rb +8 -8
- data/lib/{rlint → ruby-lint}/token/assignment_token.rb +4 -4
- data/lib/{rlint → ruby-lint}/token/begin_rescue_token.rb +7 -7
- data/lib/{rlint → ruby-lint}/token/block_token.rb +12 -3
- data/lib/{rlint → ruby-lint}/token/case_token.rb +5 -5
- data/lib/{rlint → ruby-lint}/token/class_token.rb +3 -3
- data/lib/{rlint → ruby-lint}/token/method_definition_token.rb +8 -8
- data/lib/{rlint → ruby-lint}/token/method_token.rb +9 -7
- data/lib/{rlint → ruby-lint}/token/parameters_token.rb +6 -6
- data/lib/{rlint → ruby-lint}/token/regexp_token.rb +2 -2
- data/lib/{rlint → ruby-lint}/token/statement_token.rb +6 -6
- data/lib/{rlint → ruby-lint}/token/token.rb +8 -6
- data/lib/{rlint → ruby-lint}/token/variable_token.rb +3 -3
- data/lib/ruby-lint/version.rb +3 -0
- data/ruby-lint.gemspec +5 -5
- data/spec/benchmarks/memory.rb +7 -7
- data/spec/benchmarks/parse_parser.rb +5 -5
- data/spec/fixtures/stdlib/un.rb +348 -0
- data/spec/helper.rb +3 -1
- data/spec/{rlint → ruby-lint}/analyze/coding_style.rb +30 -30
- data/spec/ruby-lint/analyze/complex/un.rb +29 -0
- data/spec/{rlint → ruby-lint}/analyze/definitions/classes.rb +25 -25
- data/spec/{rlint → ruby-lint}/analyze/definitions/methods.rb +22 -22
- data/spec/{rlint → ruby-lint}/analyze/definitions/modules.rb +42 -42
- data/spec/{rlint → ruby-lint}/analyze/definitions/variables.rb +27 -27
- data/spec/{rlint → ruby-lint}/analyze/method_validation.rb +31 -31
- data/spec/{rlint → ruby-lint}/analyze/shadowing_variables.rb +6 -6
- data/spec/{rlint → ruby-lint}/analyze/undefined_variables.rb +37 -37
- data/spec/{rlint → ruby-lint}/analyze/unused_variables.rb +21 -21
- data/spec/{rlint → ruby-lint}/callback.rb +7 -7
- data/spec/{rlint → ruby-lint}/constant_importer.rb +6 -6
- data/spec/{rlint → ruby-lint}/definition.rb +25 -25
- data/spec/{rlint → ruby-lint}/formatter/text.rb +4 -4
- data/spec/{rlint → ruby-lint}/iterator.rb +38 -38
- data/spec/{rlint → ruby-lint}/parser/arrays.rb +28 -28
- data/spec/{rlint → ruby-lint}/parser/classes.rb +23 -23
- data/spec/{rlint → ruby-lint}/parser/errors.rb +4 -4
- data/spec/{rlint → ruby-lint}/parser/hashes.rb +24 -24
- data/spec/{rlint → ruby-lint}/parser/methods.rb +50 -50
- data/spec/{rlint → ruby-lint}/parser/modules.rb +8 -8
- data/spec/{rlint → ruby-lint}/parser/objects.rb +8 -8
- data/spec/{rlint → ruby-lint}/parser/operators.rb +14 -14
- data/spec/{rlint → ruby-lint}/parser/procs.rb +26 -26
- data/spec/{rlint → ruby-lint}/parser/ranges.rb +9 -9
- data/spec/{rlint → ruby-lint}/parser/regexp.rb +5 -5
- data/spec/{rlint → ruby-lint}/parser/scalars.rb +17 -17
- data/spec/{rlint → ruby-lint}/parser/statements.rb +94 -94
- data/spec/{rlint → ruby-lint}/parser/variables.rb +37 -37
- data/spec/{rlint → ruby-lint}/report.rb +4 -4
- data/task/manifest.rake +8 -0
- data/task/test.rake +1 -1
- metadata +69 -66
- data/bin/rlint +0 -6
- data/lib/rlint.rb +0 -36
- data/lib/rlint/version.rb +0 -3
@@ -1,85 +1,85 @@
|
|
1
1
|
require File.expand_path('../../../helper', __FILE__)
|
2
2
|
|
3
|
-
describe '
|
3
|
+
describe 'RubyLint::Parser' do
|
4
4
|
it 'Parse the assignment of a local variable' do
|
5
|
-
token =
|
5
|
+
token = RubyLint::Parser.new('number = 10').parse[0]
|
6
6
|
|
7
|
-
token.class.should ==
|
7
|
+
token.class.should == RubyLint::Token::AssignmentToken
|
8
8
|
token.line.should == 1
|
9
9
|
token.column.should == 0
|
10
10
|
|
11
11
|
token.name.should == 'number'
|
12
12
|
token.type.should == :local_variable
|
13
13
|
|
14
|
-
token.value.class.should ==
|
14
|
+
token.value.class.should == RubyLint::Token::Token
|
15
15
|
token.value.type.should == :integer
|
16
16
|
token.value.value.should == '10'
|
17
17
|
end
|
18
18
|
|
19
19
|
it 'Parse the assignment of a global variable' do
|
20
|
-
token =
|
20
|
+
token = RubyLint::Parser.new('$number = 10').parse[0]
|
21
21
|
|
22
|
-
token.class.should ==
|
22
|
+
token.class.should == RubyLint::Token::AssignmentToken
|
23
23
|
token.line.should == 1
|
24
24
|
token.column.should == 0
|
25
25
|
|
26
26
|
token.name.should == '$number'
|
27
27
|
token.type.should == :global_variable
|
28
28
|
|
29
|
-
token.value.class.should ==
|
29
|
+
token.value.class.should == RubyLint::Token::Token
|
30
30
|
token.value.type.should == :integer
|
31
31
|
token.value.value.should == '10'
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'Parse the assignment of an instance variable' do
|
35
|
-
token =
|
35
|
+
token = RubyLint::Parser.new('@number = 10').parse[0]
|
36
36
|
|
37
|
-
token.class.should ==
|
37
|
+
token.class.should == RubyLint::Token::AssignmentToken
|
38
38
|
token.line.should == 1
|
39
39
|
token.column.should == 0
|
40
40
|
|
41
41
|
token.name.should == '@number'
|
42
42
|
token.type.should == :instance_variable
|
43
43
|
|
44
|
-
token.value.class.should ==
|
44
|
+
token.value.class.should == RubyLint::Token::Token
|
45
45
|
token.value.type.should == :integer
|
46
46
|
token.value.value.should == '10'
|
47
47
|
end
|
48
48
|
|
49
49
|
it 'Parse the assignment of a class variable' do
|
50
|
-
token =
|
50
|
+
token = RubyLint::Parser.new('@@number = 10').parse[0]
|
51
51
|
|
52
|
-
token.class.should ==
|
52
|
+
token.class.should == RubyLint::Token::AssignmentToken
|
53
53
|
token.line.should == 1
|
54
54
|
token.column.should == 0
|
55
55
|
|
56
56
|
token.name.should == '@@number'
|
57
57
|
token.type.should == :class_variable
|
58
58
|
|
59
|
-
token.value.class.should ==
|
59
|
+
token.value.class.should == RubyLint::Token::Token
|
60
60
|
token.value.type.should == :integer
|
61
61
|
token.value.value.should == '10'
|
62
62
|
end
|
63
63
|
|
64
64
|
it 'Parse the assignment of a constant' do
|
65
|
-
token =
|
65
|
+
token = RubyLint::Parser.new('NUMBER = 10').parse[0]
|
66
66
|
|
67
|
-
token.class.should ==
|
67
|
+
token.class.should == RubyLint::Token::AssignmentToken
|
68
68
|
token.line.should == 1
|
69
69
|
token.column.should == 0
|
70
70
|
|
71
71
|
token.name.should == 'NUMBER'
|
72
72
|
token.type.should == :constant
|
73
73
|
|
74
|
-
token.value.class.should ==
|
74
|
+
token.value.class.should == RubyLint::Token::Token
|
75
75
|
token.value.type.should == :integer
|
76
76
|
token.value.value.should == '10'
|
77
77
|
end
|
78
78
|
|
79
79
|
it 'Parse a reference to a local variable' do
|
80
|
-
token =
|
80
|
+
token = RubyLint::Parser.new("number = 10\nnumber").parse[1]
|
81
81
|
|
82
|
-
token.class.should ==
|
82
|
+
token.class.should == RubyLint::Token::VariableToken
|
83
83
|
token.line.should == 2
|
84
84
|
token.column.should == 0
|
85
85
|
token.type.should == :local_variable
|
@@ -87,9 +87,9 @@ describe 'Rlint::Parser' do
|
|
87
87
|
end
|
88
88
|
|
89
89
|
it 'Parse a reference to a global variable' do
|
90
|
-
token =
|
90
|
+
token = RubyLint::Parser.new("$number = 10\n$number").parse[1]
|
91
91
|
|
92
|
-
token.class.should ==
|
92
|
+
token.class.should == RubyLint::Token::VariableToken
|
93
93
|
token.line.should == 2
|
94
94
|
token.column.should == 0
|
95
95
|
token.type.should == :global_variable
|
@@ -97,9 +97,9 @@ describe 'Rlint::Parser' do
|
|
97
97
|
end
|
98
98
|
|
99
99
|
it 'Parse a reference to a instance variable' do
|
100
|
-
token =
|
100
|
+
token = RubyLint::Parser.new("@number = 10\n@number").parse[1]
|
101
101
|
|
102
|
-
token.class.should ==
|
102
|
+
token.class.should == RubyLint::Token::VariableToken
|
103
103
|
token.line.should == 2
|
104
104
|
token.column.should == 0
|
105
105
|
token.type.should == :instance_variable
|
@@ -107,9 +107,9 @@ describe 'Rlint::Parser' do
|
|
107
107
|
end
|
108
108
|
|
109
109
|
it 'Parse a reference to a class variable' do
|
110
|
-
token =
|
110
|
+
token = RubyLint::Parser.new("@@number = 10\n@@number").parse[1]
|
111
111
|
|
112
|
-
token.class.should ==
|
112
|
+
token.class.should == RubyLint::Token::VariableToken
|
113
113
|
token.line.should == 2
|
114
114
|
token.column.should == 0
|
115
115
|
token.type.should == :class_variable
|
@@ -117,9 +117,9 @@ describe 'Rlint::Parser' do
|
|
117
117
|
end
|
118
118
|
|
119
119
|
it 'Parse a reference to a constant' do
|
120
|
-
token =
|
120
|
+
token = RubyLint::Parser.new("NUMBER = 10\nNUMBER").parse[1]
|
121
121
|
|
122
|
-
token.class.should ==
|
122
|
+
token.class.should == RubyLint::Token::VariableToken
|
123
123
|
token.line.should == 2
|
124
124
|
token.column.should == 0
|
125
125
|
token.type.should == :constant
|
@@ -127,38 +127,38 @@ describe 'Rlint::Parser' do
|
|
127
127
|
end
|
128
128
|
|
129
129
|
it 'Parse the mass assignment of multiple variables' do
|
130
|
-
token =
|
130
|
+
token = RubyLint::Parser.new('foo, bar = 10, 20').parse[0]
|
131
131
|
|
132
|
-
token.class.should ==
|
132
|
+
token.class.should == RubyLint::Token::AssignmentToken
|
133
133
|
|
134
134
|
token.name.class.should == Array
|
135
135
|
token.name.length.should == 2
|
136
136
|
token.type.should == :mass_assignment
|
137
137
|
|
138
|
-
token.name[0].class.should ==
|
138
|
+
token.name[0].class.should == RubyLint::Token::Token
|
139
139
|
token.name[0].name.should == 'foo'
|
140
140
|
token.name[0].type.should == :local_variable
|
141
141
|
|
142
|
-
token.name[1].class.should ==
|
142
|
+
token.name[1].class.should == RubyLint::Token::Token
|
143
143
|
token.name[1].name.should == 'bar'
|
144
144
|
token.name[1].type.should == :local_variable
|
145
145
|
|
146
146
|
token.value.class.should == Array
|
147
147
|
token.value.length.should == 2
|
148
148
|
|
149
|
-
token.value[0].class.should ==
|
149
|
+
token.value[0].class.should == RubyLint::Token::Token
|
150
150
|
token.value[0].value.should == '10'
|
151
151
|
token.value[0].type.should == :integer
|
152
152
|
|
153
|
-
token.value[1].class.should ==
|
153
|
+
token.value[1].class.should == RubyLint::Token::Token
|
154
154
|
token.value[1].value.should == '20'
|
155
155
|
token.value[1].type.should == :integer
|
156
156
|
end
|
157
157
|
|
158
158
|
it 'Parse the reference of a constant path' do
|
159
|
-
token =
|
159
|
+
token = RubyLint::Parser.new('A::B::C').parse[0]
|
160
160
|
|
161
|
-
token.class.should ==
|
161
|
+
token.class.should == RubyLint::Token::VariableToken
|
162
162
|
token.type.should == :constant_path
|
163
163
|
token.name.should == ['A', 'B', 'C']
|
164
164
|
token.line.should == 1
|
@@ -166,15 +166,15 @@ describe 'Rlint::Parser' do
|
|
166
166
|
end
|
167
167
|
|
168
168
|
it 'Parse the assignment of a constant path' do
|
169
|
-
token =
|
169
|
+
token = RubyLint::Parser.new('A::B::C = 10').parse[0]
|
170
170
|
|
171
|
-
token.class.should ==
|
171
|
+
token.class.should == RubyLint::Token::AssignmentToken
|
172
172
|
token.type.should == :constant_path
|
173
173
|
token.name.should == ['A', 'B', 'C']
|
174
174
|
token.line.should == 1
|
175
175
|
token.column.should == 0
|
176
176
|
|
177
|
-
token.value.class.should ==
|
177
|
+
token.value.class.should == RubyLint::Token::Token
|
178
178
|
token.value.type.should == :integer
|
179
179
|
token.value.value.should == '10'
|
180
180
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require File.expand_path('../../helper', __FILE__)
|
2
2
|
|
3
|
-
describe '
|
3
|
+
describe 'RubyLint::Report' do
|
4
4
|
it 'Add an error message to a report' do
|
5
|
-
report =
|
5
|
+
report = RubyLint::Report.new
|
6
6
|
|
7
7
|
report.add(:error, 'test error', 1, 1)
|
8
8
|
|
@@ -16,11 +16,11 @@ describe 'Rlint::Report' do
|
|
16
16
|
report.messages[:error][0][:line].should == 1
|
17
17
|
report.messages[:error][0][:column].should == 1
|
18
18
|
|
19
|
-
report.file.should == '(
|
19
|
+
report.file.should == '(ruby-lint)'
|
20
20
|
end
|
21
21
|
|
22
22
|
it 'Ignore disabled reporting levels' do
|
23
|
-
report =
|
23
|
+
report = RubyLint::Report.new('(ruby-lint)', [:error])
|
24
24
|
|
25
25
|
report.add(:info, 'test info', 1, 1)
|
26
26
|
|
data/task/manifest.rake
ADDED
data/task/test.rake
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1a1
|
5
5
|
prerelease: 5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -78,7 +78,7 @@ dependencies:
|
|
78
78
|
description: Static code analysis tool and linter for Ruby
|
79
79
|
email: yorickpeterse@gmail.com
|
80
80
|
executables:
|
81
|
-
-
|
81
|
+
- ruby-lint
|
82
82
|
extensions: []
|
83
83
|
extra_rdoc_files: []
|
84
84
|
files:
|
@@ -90,78 +90,81 @@ files:
|
|
90
90
|
- MANIFEST
|
91
91
|
- README.md
|
92
92
|
- Rakefile
|
93
|
-
- bin/
|
93
|
+
- bin/ruby-lint
|
94
94
|
- doc/.gitkeep
|
95
95
|
- doc/build/.gitkeep
|
96
96
|
- doc/css/.gitkeep
|
97
97
|
- doc/css/common.css
|
98
|
-
- lib/
|
99
|
-
- lib/
|
100
|
-
- lib/
|
101
|
-
- lib/
|
102
|
-
- lib/
|
103
|
-
- lib/
|
104
|
-
- lib/
|
105
|
-
- lib/
|
106
|
-
- lib/
|
107
|
-
- lib/
|
108
|
-
- lib/
|
109
|
-
- lib/
|
110
|
-
- lib/
|
111
|
-
- lib/
|
112
|
-
- lib/
|
113
|
-
- lib/
|
114
|
-
- lib/
|
115
|
-
- lib/
|
116
|
-
- lib/
|
117
|
-
- lib/
|
118
|
-
- lib/
|
119
|
-
- lib/
|
120
|
-
- lib/
|
121
|
-
- lib/
|
122
|
-
- lib/
|
123
|
-
- lib/
|
124
|
-
- lib/
|
125
|
-
- lib/
|
126
|
-
- lib/
|
127
|
-
- lib/
|
128
|
-
- lib/
|
129
|
-
- lib/
|
98
|
+
- lib/ruby-lint.rb
|
99
|
+
- lib/ruby-lint/analyze/coding_style.rb
|
100
|
+
- lib/ruby-lint/analyze/definitions.rb
|
101
|
+
- lib/ruby-lint/analyze/method_validation.rb
|
102
|
+
- lib/ruby-lint/analyze/shadowing_variables.rb
|
103
|
+
- lib/ruby-lint/analyze/undefined_variables.rb
|
104
|
+
- lib/ruby-lint/analyze/unused_variables.rb
|
105
|
+
- lib/ruby-lint/callback.rb
|
106
|
+
- lib/ruby-lint/cli.rb
|
107
|
+
- lib/ruby-lint/constant_importer.rb
|
108
|
+
- lib/ruby-lint/definition.rb
|
109
|
+
- lib/ruby-lint/formatter/text.rb
|
110
|
+
- lib/ruby-lint/helper/definition_resolver.rb
|
111
|
+
- lib/ruby-lint/helper/scoping.rb
|
112
|
+
- lib/ruby-lint/iterator.rb
|
113
|
+
- lib/ruby-lint/options.rb
|
114
|
+
- lib/ruby-lint/parser.rb
|
115
|
+
- lib/ruby-lint/parser_error.rb
|
116
|
+
- lib/ruby-lint/report.rb
|
117
|
+
- lib/ruby-lint/token/assignment_token.rb
|
118
|
+
- lib/ruby-lint/token/begin_rescue_token.rb
|
119
|
+
- lib/ruby-lint/token/block_token.rb
|
120
|
+
- lib/ruby-lint/token/case_token.rb
|
121
|
+
- lib/ruby-lint/token/class_token.rb
|
122
|
+
- lib/ruby-lint/token/method_definition_token.rb
|
123
|
+
- lib/ruby-lint/token/method_token.rb
|
124
|
+
- lib/ruby-lint/token/parameters_token.rb
|
125
|
+
- lib/ruby-lint/token/regexp_token.rb
|
126
|
+
- lib/ruby-lint/token/statement_token.rb
|
127
|
+
- lib/ruby-lint/token/token.rb
|
128
|
+
- lib/ruby-lint/token/variable_token.rb
|
129
|
+
- lib/ruby-lint/version.rb
|
130
130
|
- ruby-lint.gemspec
|
131
131
|
- spec/benchmarks/memory.rb
|
132
132
|
- spec/benchmarks/parse_parser.rb
|
133
|
+
- spec/fixtures/stdlib/un.rb
|
133
134
|
- spec/helper.rb
|
134
|
-
- spec/
|
135
|
-
- spec/
|
136
|
-
- spec/
|
137
|
-
- spec/
|
138
|
-
- spec/
|
139
|
-
- spec/
|
140
|
-
- spec/
|
141
|
-
- spec/
|
142
|
-
- spec/
|
143
|
-
- spec/
|
144
|
-
- spec/
|
145
|
-
- spec/
|
146
|
-
- spec/
|
147
|
-
- spec/
|
148
|
-
- spec/
|
149
|
-
- spec/
|
150
|
-
- spec/
|
151
|
-
- spec/
|
152
|
-
- spec/
|
153
|
-
- spec/
|
154
|
-
- spec/
|
155
|
-
- spec/
|
156
|
-
- spec/
|
157
|
-
- spec/
|
158
|
-
- spec/
|
159
|
-
- spec/
|
160
|
-
- spec/
|
161
|
-
- spec/
|
162
|
-
- spec/
|
135
|
+
- spec/ruby-lint/analyze/coding_style.rb
|
136
|
+
- spec/ruby-lint/analyze/complex/un.rb
|
137
|
+
- spec/ruby-lint/analyze/definitions/classes.rb
|
138
|
+
- spec/ruby-lint/analyze/definitions/methods.rb
|
139
|
+
- spec/ruby-lint/analyze/definitions/modules.rb
|
140
|
+
- spec/ruby-lint/analyze/definitions/variables.rb
|
141
|
+
- spec/ruby-lint/analyze/method_validation.rb
|
142
|
+
- spec/ruby-lint/analyze/shadowing_variables.rb
|
143
|
+
- spec/ruby-lint/analyze/undefined_variables.rb
|
144
|
+
- spec/ruby-lint/analyze/unused_variables.rb
|
145
|
+
- spec/ruby-lint/callback.rb
|
146
|
+
- spec/ruby-lint/constant_importer.rb
|
147
|
+
- spec/ruby-lint/definition.rb
|
148
|
+
- spec/ruby-lint/formatter/text.rb
|
149
|
+
- spec/ruby-lint/iterator.rb
|
150
|
+
- spec/ruby-lint/parser/arrays.rb
|
151
|
+
- spec/ruby-lint/parser/classes.rb
|
152
|
+
- spec/ruby-lint/parser/errors.rb
|
153
|
+
- spec/ruby-lint/parser/hashes.rb
|
154
|
+
- spec/ruby-lint/parser/methods.rb
|
155
|
+
- spec/ruby-lint/parser/modules.rb
|
156
|
+
- spec/ruby-lint/parser/objects.rb
|
157
|
+
- spec/ruby-lint/parser/operators.rb
|
158
|
+
- spec/ruby-lint/parser/procs.rb
|
159
|
+
- spec/ruby-lint/parser/ranges.rb
|
160
|
+
- spec/ruby-lint/parser/regexp.rb
|
161
|
+
- spec/ruby-lint/parser/scalars.rb
|
162
|
+
- spec/ruby-lint/parser/statements.rb
|
163
|
+
- spec/ruby-lint/parser/variables.rb
|
164
|
+
- spec/ruby-lint/report.rb
|
165
|
+
- task/manifest.rake
|
163
166
|
- task/test.rake
|
164
|
-
homepage: https://github.com/yorickpeterse/
|
167
|
+
homepage: https://github.com/yorickpeterse/ruby-lint/
|
165
168
|
licenses: []
|
166
169
|
post_install_message:
|
167
170
|
rdoc_options: []
|
data/bin/rlint
DELETED
data/lib/rlint.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'ripper'
|
2
|
-
|
3
|
-
unless $:.include?(File.expand_path('../', __FILE__))
|
4
|
-
$:.unshift(File.expand_path('../', __FILE__))
|
5
|
-
end
|
6
|
-
|
7
|
-
require 'rlint/version'
|
8
|
-
require 'rlint/parser'
|
9
|
-
require 'rlint/token/token'
|
10
|
-
require 'rlint/token/variable_token'
|
11
|
-
require 'rlint/token/statement_token'
|
12
|
-
require 'rlint/token/begin_rescue_token'
|
13
|
-
require 'rlint/token/method_definition_token'
|
14
|
-
require 'rlint/token/parameters_token'
|
15
|
-
require 'rlint/token/method_token'
|
16
|
-
require 'rlint/token/block_token'
|
17
|
-
require 'rlint/token/assignment_token'
|
18
|
-
require 'rlint/token/case_token'
|
19
|
-
require 'rlint/token/regexp_token'
|
20
|
-
require 'rlint/token/class_token'
|
21
|
-
require 'rlint/parser_error'
|
22
|
-
require 'rlint/iterator'
|
23
|
-
require 'rlint/callback'
|
24
|
-
require 'rlint/report'
|
25
|
-
require 'rlint/definition'
|
26
|
-
require 'rlint/constant_importer'
|
27
|
-
require 'rlint/formatter/text'
|
28
|
-
require 'rlint/helper/scoping'
|
29
|
-
require 'rlint/helper/definition_resolver'
|
30
|
-
require 'rlint/analyze/coding_style'
|
31
|
-
require 'rlint/analyze/definitions'
|
32
|
-
require 'rlint/analyze/unused_variables'
|
33
|
-
require 'rlint/analyze/undefined_variables'
|
34
|
-
require 'rlint/analyze/shadowing_variables'
|
35
|
-
require 'rlint/analyze/method_validation'
|
36
|
-
require 'rlint/options'
|