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.
Files changed (77) hide show
  1. data/.yardopts +1 -1
  2. data/MANIFEST +65 -62
  3. data/README.md +114 -13
  4. data/bin/ruby-lint +6 -0
  5. data/lib/ruby-lint.rb +36 -0
  6. data/lib/{rlint → ruby-lint}/analyze/coding_style.rb +32 -32
  7. data/lib/{rlint → ruby-lint}/analyze/definitions.rb +13 -13
  8. data/lib/{rlint → ruby-lint}/analyze/method_validation.rb +5 -5
  9. data/lib/{rlint → ruby-lint}/analyze/shadowing_variables.rb +5 -5
  10. data/lib/{rlint → ruby-lint}/analyze/undefined_variables.rb +7 -7
  11. data/lib/{rlint → ruby-lint}/analyze/unused_variables.rb +6 -6
  12. data/lib/{rlint → ruby-lint}/callback.rb +11 -11
  13. data/lib/{rlint → ruby-lint}/cli.rb +17 -17
  14. data/lib/{rlint → ruby-lint}/constant_importer.rb +18 -8
  15. data/lib/{rlint → ruby-lint}/definition.rb +10 -10
  16. data/lib/{rlint → ruby-lint}/formatter/text.rb +6 -6
  17. data/lib/{rlint → ruby-lint}/helper/definition_resolver.rb +11 -11
  18. data/lib/{rlint → ruby-lint}/helper/scoping.rb +14 -14
  19. data/lib/{rlint → ruby-lint}/iterator.rb +22 -22
  20. data/lib/{rlint → ruby-lint}/options.rb +9 -9
  21. data/lib/{rlint → ruby-lint}/parser.rb +111 -111
  22. data/lib/{rlint → ruby-lint}/parser_error.rb +3 -3
  23. data/lib/{rlint → ruby-lint}/report.rb +8 -8
  24. data/lib/{rlint → ruby-lint}/token/assignment_token.rb +4 -4
  25. data/lib/{rlint → ruby-lint}/token/begin_rescue_token.rb +7 -7
  26. data/lib/{rlint → ruby-lint}/token/block_token.rb +12 -3
  27. data/lib/{rlint → ruby-lint}/token/case_token.rb +5 -5
  28. data/lib/{rlint → ruby-lint}/token/class_token.rb +3 -3
  29. data/lib/{rlint → ruby-lint}/token/method_definition_token.rb +8 -8
  30. data/lib/{rlint → ruby-lint}/token/method_token.rb +9 -7
  31. data/lib/{rlint → ruby-lint}/token/parameters_token.rb +6 -6
  32. data/lib/{rlint → ruby-lint}/token/regexp_token.rb +2 -2
  33. data/lib/{rlint → ruby-lint}/token/statement_token.rb +6 -6
  34. data/lib/{rlint → ruby-lint}/token/token.rb +8 -6
  35. data/lib/{rlint → ruby-lint}/token/variable_token.rb +3 -3
  36. data/lib/ruby-lint/version.rb +3 -0
  37. data/ruby-lint.gemspec +5 -5
  38. data/spec/benchmarks/memory.rb +7 -7
  39. data/spec/benchmarks/parse_parser.rb +5 -5
  40. data/spec/fixtures/stdlib/un.rb +348 -0
  41. data/spec/helper.rb +3 -1
  42. data/spec/{rlint → ruby-lint}/analyze/coding_style.rb +30 -30
  43. data/spec/ruby-lint/analyze/complex/un.rb +29 -0
  44. data/spec/{rlint → ruby-lint}/analyze/definitions/classes.rb +25 -25
  45. data/spec/{rlint → ruby-lint}/analyze/definitions/methods.rb +22 -22
  46. data/spec/{rlint → ruby-lint}/analyze/definitions/modules.rb +42 -42
  47. data/spec/{rlint → ruby-lint}/analyze/definitions/variables.rb +27 -27
  48. data/spec/{rlint → ruby-lint}/analyze/method_validation.rb +31 -31
  49. data/spec/{rlint → ruby-lint}/analyze/shadowing_variables.rb +6 -6
  50. data/spec/{rlint → ruby-lint}/analyze/undefined_variables.rb +37 -37
  51. data/spec/{rlint → ruby-lint}/analyze/unused_variables.rb +21 -21
  52. data/spec/{rlint → ruby-lint}/callback.rb +7 -7
  53. data/spec/{rlint → ruby-lint}/constant_importer.rb +6 -6
  54. data/spec/{rlint → ruby-lint}/definition.rb +25 -25
  55. data/spec/{rlint → ruby-lint}/formatter/text.rb +4 -4
  56. data/spec/{rlint → ruby-lint}/iterator.rb +38 -38
  57. data/spec/{rlint → ruby-lint}/parser/arrays.rb +28 -28
  58. data/spec/{rlint → ruby-lint}/parser/classes.rb +23 -23
  59. data/spec/{rlint → ruby-lint}/parser/errors.rb +4 -4
  60. data/spec/{rlint → ruby-lint}/parser/hashes.rb +24 -24
  61. data/spec/{rlint → ruby-lint}/parser/methods.rb +50 -50
  62. data/spec/{rlint → ruby-lint}/parser/modules.rb +8 -8
  63. data/spec/{rlint → ruby-lint}/parser/objects.rb +8 -8
  64. data/spec/{rlint → ruby-lint}/parser/operators.rb +14 -14
  65. data/spec/{rlint → ruby-lint}/parser/procs.rb +26 -26
  66. data/spec/{rlint → ruby-lint}/parser/ranges.rb +9 -9
  67. data/spec/{rlint → ruby-lint}/parser/regexp.rb +5 -5
  68. data/spec/{rlint → ruby-lint}/parser/scalars.rb +17 -17
  69. data/spec/{rlint → ruby-lint}/parser/statements.rb +94 -94
  70. data/spec/{rlint → ruby-lint}/parser/variables.rb +37 -37
  71. data/spec/{rlint → ruby-lint}/report.rb +4 -4
  72. data/task/manifest.rake +8 -0
  73. data/task/test.rake +1 -1
  74. metadata +69 -66
  75. data/bin/rlint +0 -6
  76. data/lib/rlint.rb +0 -36
  77. data/lib/rlint/version.rb +0 -3
@@ -1,85 +1,85 @@
1
1
  require File.expand_path('../../../helper', __FILE__)
2
2
 
3
- describe 'Rlint::Parser' do
3
+ describe 'RubyLint::Parser' do
4
4
  it 'Parse the assignment of a local variable' do
5
- token = Rlint::Parser.new('number = 10').parse[0]
5
+ token = RubyLint::Parser.new('number = 10').parse[0]
6
6
 
7
- token.class.should == Rlint::Token::AssignmentToken
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 == Rlint::Token::Token
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 = Rlint::Parser.new('$number = 10').parse[0]
20
+ token = RubyLint::Parser.new('$number = 10').parse[0]
21
21
 
22
- token.class.should == Rlint::Token::AssignmentToken
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 == Rlint::Token::Token
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 = Rlint::Parser.new('@number = 10').parse[0]
35
+ token = RubyLint::Parser.new('@number = 10').parse[0]
36
36
 
37
- token.class.should == Rlint::Token::AssignmentToken
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 == Rlint::Token::Token
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 = Rlint::Parser.new('@@number = 10').parse[0]
50
+ token = RubyLint::Parser.new('@@number = 10').parse[0]
51
51
 
52
- token.class.should == Rlint::Token::AssignmentToken
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 == Rlint::Token::Token
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 = Rlint::Parser.new('NUMBER = 10').parse[0]
65
+ token = RubyLint::Parser.new('NUMBER = 10').parse[0]
66
66
 
67
- token.class.should == Rlint::Token::AssignmentToken
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 == Rlint::Token::Token
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 = Rlint::Parser.new("number = 10\nnumber").parse[1]
80
+ token = RubyLint::Parser.new("number = 10\nnumber").parse[1]
81
81
 
82
- token.class.should == Rlint::Token::VariableToken
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 = Rlint::Parser.new("$number = 10\n$number").parse[1]
90
+ token = RubyLint::Parser.new("$number = 10\n$number").parse[1]
91
91
 
92
- token.class.should == Rlint::Token::VariableToken
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 = Rlint::Parser.new("@number = 10\n@number").parse[1]
100
+ token = RubyLint::Parser.new("@number = 10\n@number").parse[1]
101
101
 
102
- token.class.should == Rlint::Token::VariableToken
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 = Rlint::Parser.new("@@number = 10\n@@number").parse[1]
110
+ token = RubyLint::Parser.new("@@number = 10\n@@number").parse[1]
111
111
 
112
- token.class.should == Rlint::Token::VariableToken
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 = Rlint::Parser.new("NUMBER = 10\nNUMBER").parse[1]
120
+ token = RubyLint::Parser.new("NUMBER = 10\nNUMBER").parse[1]
121
121
 
122
- token.class.should == Rlint::Token::VariableToken
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 = Rlint::Parser.new('foo, bar = 10, 20').parse[0]
130
+ token = RubyLint::Parser.new('foo, bar = 10, 20').parse[0]
131
131
 
132
- token.class.should == Rlint::Token::AssignmentToken
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 == Rlint::Token::Token
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 == Rlint::Token::Token
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 == Rlint::Token::Token
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 == Rlint::Token::Token
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 = Rlint::Parser.new('A::B::C').parse[0]
159
+ token = RubyLint::Parser.new('A::B::C').parse[0]
160
160
 
161
- token.class.should == Rlint::Token::VariableToken
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 = Rlint::Parser.new('A::B::C = 10').parse[0]
169
+ token = RubyLint::Parser.new('A::B::C = 10').parse[0]
170
170
 
171
- token.class.should == Rlint::Token::AssignmentToken
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 == Rlint::Token::Token
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 'Rlint::Report' do
3
+ describe 'RubyLint::Report' do
4
4
  it 'Add an error message to a report' do
5
- report = Rlint::Report.new
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 == '(rlint)'
19
+ report.file.should == '(ruby-lint)'
20
20
  end
21
21
 
22
22
  it 'Ignore disabled reporting levels' do
23
- report = Rlint::Report.new('(rlint)', [:error])
23
+ report = RubyLint::Report.new('(ruby-lint)', [:error])
24
24
 
25
25
  report.add(:info, 'test info', 1, 1)
26
26
 
@@ -0,0 +1,8 @@
1
+ desc 'Generates the MANIFEST file'
2
+ task :manifest do
3
+ files = `git ls-files`.split("\n").sort
4
+ handle = File.open(File.expand_path('../../MANIFEST', __FILE__), 'w')
5
+
6
+ handle.write(files.join("\n"))
7
+ handle.close
8
+ end
data/task/test.rake CHANGED
@@ -1,6 +1,6 @@
1
1
  desc 'Runs all the tests'
2
2
  task :test do
3
- glob = File.expand_path('../../spec/rlint/**/*.rb', __FILE__)
3
+ glob = File.expand_path('../../spec/ruby-lint/**/*.rb', __FILE__)
4
4
 
5
5
  Dir[glob].each { |file| require(file) }
6
6
  end
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.1a
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 00:00:00.000000000 Z
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
- - rlint
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/rlint
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/rlint.rb
99
- - lib/rlint/analyze/coding_style.rb
100
- - lib/rlint/analyze/definitions.rb
101
- - lib/rlint/analyze/method_validation.rb
102
- - lib/rlint/analyze/shadowing_variables.rb
103
- - lib/rlint/analyze/undefined_variables.rb
104
- - lib/rlint/analyze/unused_variables.rb
105
- - lib/rlint/callback.rb
106
- - lib/rlint/cli.rb
107
- - lib/rlint/constant_importer.rb
108
- - lib/rlint/definition.rb
109
- - lib/rlint/formatter/text.rb
110
- - lib/rlint/helper/definition_resolver.rb
111
- - lib/rlint/helper/scoping.rb
112
- - lib/rlint/iterator.rb
113
- - lib/rlint/options.rb
114
- - lib/rlint/parser.rb
115
- - lib/rlint/parser_error.rb
116
- - lib/rlint/report.rb
117
- - lib/rlint/token/assignment_token.rb
118
- - lib/rlint/token/begin_rescue_token.rb
119
- - lib/rlint/token/block_token.rb
120
- - lib/rlint/token/case_token.rb
121
- - lib/rlint/token/class_token.rb
122
- - lib/rlint/token/method_definition_token.rb
123
- - lib/rlint/token/method_token.rb
124
- - lib/rlint/token/parameters_token.rb
125
- - lib/rlint/token/regexp_token.rb
126
- - lib/rlint/token/statement_token.rb
127
- - lib/rlint/token/token.rb
128
- - lib/rlint/token/variable_token.rb
129
- - lib/rlint/version.rb
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/rlint/analyze/coding_style.rb
135
- - spec/rlint/analyze/definitions/classes.rb
136
- - spec/rlint/analyze/definitions/methods.rb
137
- - spec/rlint/analyze/definitions/modules.rb
138
- - spec/rlint/analyze/definitions/variables.rb
139
- - spec/rlint/analyze/method_validation.rb
140
- - spec/rlint/analyze/shadowing_variables.rb
141
- - spec/rlint/analyze/undefined_variables.rb
142
- - spec/rlint/analyze/unused_variables.rb
143
- - spec/rlint/callback.rb
144
- - spec/rlint/constant_importer.rb
145
- - spec/rlint/definition.rb
146
- - spec/rlint/formatter/text.rb
147
- - spec/rlint/iterator.rb
148
- - spec/rlint/parser/arrays.rb
149
- - spec/rlint/parser/classes.rb
150
- - spec/rlint/parser/errors.rb
151
- - spec/rlint/parser/hashes.rb
152
- - spec/rlint/parser/methods.rb
153
- - spec/rlint/parser/modules.rb
154
- - spec/rlint/parser/objects.rb
155
- - spec/rlint/parser/operators.rb
156
- - spec/rlint/parser/procs.rb
157
- - spec/rlint/parser/ranges.rb
158
- - spec/rlint/parser/regexp.rb
159
- - spec/rlint/parser/scalars.rb
160
- - spec/rlint/parser/statements.rb
161
- - spec/rlint/parser/variables.rb
162
- - spec/rlint/report.rb
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/rlint/
167
+ homepage: https://github.com/yorickpeterse/ruby-lint/
165
168
  licenses: []
166
169
  post_install_message:
167
170
  rdoc_options: []
data/bin/rlint DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require File.expand_path('../../lib/rlint', __FILE__)
4
- require 'rlint/cli'
5
-
6
- Rlint::CLI.new.run
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'