jruby-lint 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Gemfile +12 -0
- data/Guardfile +12 -0
- data/History.txt +4 -0
- data/README.md +62 -0
- data/Rakefile +24 -0
- data/bin/jrlint +5 -0
- data/jruby-lint.gemspec +38 -0
- data/lib/jruby/lint.rb +19 -0
- data/lib/jruby/lint/ast.rb +56 -0
- data/lib/jruby/lint/checkers.rb +24 -0
- data/lib/jruby/lint/checkers/fork_exec.rb +47 -0
- data/lib/jruby/lint/checkers/gem.rb +45 -0
- data/lib/jruby/lint/checkers/gemspec.rb +41 -0
- data/lib/jruby/lint/checkers/object_space.rb +25 -0
- data/lib/jruby/lint/checkers/thread_critical.rb +26 -0
- data/lib/jruby/lint/cli.rb +61 -0
- data/lib/jruby/lint/collectors.rb +75 -0
- data/lib/jruby/lint/collectors/bundler.rb +9 -0
- data/lib/jruby/lint/collectors/gemspec.rb +9 -0
- data/lib/jruby/lint/collectors/rake.rb +9 -0
- data/lib/jruby/lint/collectors/ruby.rb +14 -0
- data/lib/jruby/lint/finding.rb +15 -0
- data/lib/jruby/lint/github.crt +76 -0
- data/lib/jruby/lint/libraries.rb +107 -0
- data/lib/jruby/lint/project.rb +56 -0
- data/lib/jruby/lint/reporters.rb +35 -0
- data/lib/jruby/lint/version.rb +5 -0
- data/spec/fixtures/C-Extension-Alternatives.html +557 -0
- data/spec/jruby/lint/ast_spec.rb +23 -0
- data/spec/jruby/lint/checkers_spec.rb +135 -0
- data/spec/jruby/lint/cli_spec.rb +66 -0
- data/spec/jruby/lint/collectors_spec.rb +34 -0
- data/spec/jruby/lint/finding_spec.rb +31 -0
- data/spec/jruby/lint/libraries_spec.rb +56 -0
- data/spec/jruby/lint/project_spec.rb +77 -0
- data/spec/jruby/lint/reporters_spec.rb +42 -0
- data/spec/jruby/lint/version_spec.rb +6 -0
- data/spec/spec_helper.rb +30 -0
- metadata +194 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
require 'rspec/given'
|
3
|
+
require 'jruby/lint'
|
4
|
+
require 'aruba/api'
|
5
|
+
|
6
|
+
module JRuby::Lint::Specs
|
7
|
+
PROJECT_DIR = File.expand_path('../..', __FILE__)
|
8
|
+
def project_dir
|
9
|
+
PROJECT_DIR
|
10
|
+
end
|
11
|
+
ENV['JRUBY_LINT_CACHE'] = "#{PROJECT_DIR}/spec/fixtures"
|
12
|
+
end
|
13
|
+
|
14
|
+
RSpec.configure do |config|
|
15
|
+
config.include JRuby::Lint::Specs
|
16
|
+
config.include Aruba::Api
|
17
|
+
|
18
|
+
config.filter_run_excluding :requires_net => true unless ENV['RUN_ALL_SPECS']
|
19
|
+
|
20
|
+
config.before do
|
21
|
+
@aruba_timeout_seconds = 20
|
22
|
+
@existing_checkers = JRuby::Lint::Checker.loaded_checkers.dup
|
23
|
+
in_current_dir { Dir['**/*'].each {|f| File.unlink(f) if File.file?(f) } }
|
24
|
+
JRuby::Lint::Checkers::CheckGemNode.instance_eval { @added_wiki_link = nil }
|
25
|
+
end
|
26
|
+
|
27
|
+
config.after do
|
28
|
+
JRuby::Lint::Checker.loaded_checkers.replace(@existing_checkers)
|
29
|
+
end
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,194 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jruby-lint
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: "0.1"
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Nick Sieger
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-05-18 00:00:00 -04:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: term-ansicolor
|
18
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
requirement: *id001
|
25
|
+
prerelease: false
|
26
|
+
type: :runtime
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jruby-openssl
|
29
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: "0"
|
35
|
+
requirement: *id002
|
36
|
+
prerelease: false
|
37
|
+
type: :runtime
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: nokogiri
|
40
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - "="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.5.0.beta.4
|
46
|
+
requirement: *id003
|
47
|
+
prerelease: false
|
48
|
+
type: :runtime
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rake
|
51
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: "0"
|
57
|
+
requirement: *id004
|
58
|
+
prerelease: false
|
59
|
+
type: :development
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: rspec
|
62
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "2.5"
|
68
|
+
requirement: *id005
|
69
|
+
prerelease: false
|
70
|
+
type: :development
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: rspec-given
|
73
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
requirement: *id006
|
80
|
+
prerelease: false
|
81
|
+
type: :development
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: aruba
|
84
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: "0"
|
90
|
+
requirement: *id007
|
91
|
+
prerelease: false
|
92
|
+
type: :development
|
93
|
+
description: |-
|
94
|
+
This utility presents hints and suggestions to
|
95
|
+
give you an idea of potentially troublesome spots in your code and
|
96
|
+
dependencies that keep your code from running efficiently on JRuby.
|
97
|
+
|
98
|
+
Most pure Ruby code will run fine, but the two common areas that
|
99
|
+
trip people up are native extensions and threading
|
100
|
+
email:
|
101
|
+
- nick@nicksieger.com
|
102
|
+
executables:
|
103
|
+
- jrlint
|
104
|
+
extensions: []
|
105
|
+
|
106
|
+
extra_rdoc_files: []
|
107
|
+
|
108
|
+
files:
|
109
|
+
- .gitignore
|
110
|
+
- Gemfile
|
111
|
+
- Gemfile.lock
|
112
|
+
- Guardfile
|
113
|
+
- History.txt
|
114
|
+
- README.md
|
115
|
+
- Rakefile
|
116
|
+
- bin/jrlint
|
117
|
+
- jruby-lint.gemspec
|
118
|
+
- lib/jruby/lint.rb
|
119
|
+
- lib/jruby/lint/ast.rb
|
120
|
+
- lib/jruby/lint/checkers.rb
|
121
|
+
- lib/jruby/lint/checkers/fork_exec.rb
|
122
|
+
- lib/jruby/lint/checkers/gem.rb
|
123
|
+
- lib/jruby/lint/checkers/gemspec.rb
|
124
|
+
- lib/jruby/lint/checkers/object_space.rb
|
125
|
+
- lib/jruby/lint/checkers/thread_critical.rb
|
126
|
+
- lib/jruby/lint/cli.rb
|
127
|
+
- lib/jruby/lint/collectors.rb
|
128
|
+
- lib/jruby/lint/collectors/bundler.rb
|
129
|
+
- lib/jruby/lint/collectors/gemspec.rb
|
130
|
+
- lib/jruby/lint/collectors/rake.rb
|
131
|
+
- lib/jruby/lint/collectors/ruby.rb
|
132
|
+
- lib/jruby/lint/finding.rb
|
133
|
+
- lib/jruby/lint/github.crt
|
134
|
+
- lib/jruby/lint/libraries.rb
|
135
|
+
- lib/jruby/lint/project.rb
|
136
|
+
- lib/jruby/lint/reporters.rb
|
137
|
+
- lib/jruby/lint/version.rb
|
138
|
+
- spec/fixtures/C-Extension-Alternatives.html
|
139
|
+
- spec/jruby/lint/ast_spec.rb
|
140
|
+
- spec/jruby/lint/checkers_spec.rb
|
141
|
+
- spec/jruby/lint/cli_spec.rb
|
142
|
+
- spec/jruby/lint/collectors_spec.rb
|
143
|
+
- spec/jruby/lint/finding_spec.rb
|
144
|
+
- spec/jruby/lint/libraries_spec.rb
|
145
|
+
- spec/jruby/lint/project_spec.rb
|
146
|
+
- spec/jruby/lint/reporters_spec.rb
|
147
|
+
- spec/jruby/lint/version_spec.rb
|
148
|
+
- spec/spec_helper.rb
|
149
|
+
has_rdoc: true
|
150
|
+
homepage: https://github.com/jruby/jruby-lint
|
151
|
+
licenses: []
|
152
|
+
|
153
|
+
post_install_message:
|
154
|
+
rdoc_options: []
|
155
|
+
|
156
|
+
require_paths:
|
157
|
+
- lib
|
158
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
159
|
+
none: false
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
hash: 2
|
164
|
+
segments:
|
165
|
+
- 0
|
166
|
+
version: "0"
|
167
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
|
+
none: false
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
hash: 2
|
173
|
+
segments:
|
174
|
+
- 0
|
175
|
+
version: "0"
|
176
|
+
requirements: []
|
177
|
+
|
178
|
+
rubyforge_project: jruby-lint
|
179
|
+
rubygems_version: 1.5.1
|
180
|
+
signing_key:
|
181
|
+
specification_version: 3
|
182
|
+
summary: See how ready your Ruby code is to run on JRuby.
|
183
|
+
test_files:
|
184
|
+
- spec/fixtures/C-Extension-Alternatives.html
|
185
|
+
- spec/jruby/lint/ast_spec.rb
|
186
|
+
- spec/jruby/lint/checkers_spec.rb
|
187
|
+
- spec/jruby/lint/cli_spec.rb
|
188
|
+
- spec/jruby/lint/collectors_spec.rb
|
189
|
+
- spec/jruby/lint/finding_spec.rb
|
190
|
+
- spec/jruby/lint/libraries_spec.rb
|
191
|
+
- spec/jruby/lint/project_spec.rb
|
192
|
+
- spec/jruby/lint/reporters_spec.rb
|
193
|
+
- spec/jruby/lint/version_spec.rb
|
194
|
+
- spec/spec_helper.rb
|