-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with whitespace?': undefined method #93
Comments
This is the repo btw: https://github.com/alphagov/whitehall/ |
@jonas054, can you look into this? |
Yes, I will try to solve it. |
jonas054
added a commit
to jonas054/rubocop
that referenced
this issue
Apr 25, 2013
Solves issue rubocop#93. A semicolon as the last character in a an examined file caused a NoMethodError.
I reproduced the error by scanning this file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/Users/matt/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rubocop-0.6.0/lib/rubocop/cop/cop.rb:99:in
'whitespace?': undefined method
type' for nil:NilClass (NoMethodError)from /Users/matt/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rubocop-0.6.0/lib/rubocop/cop/space_after_comma_etc.rb:11:in
block in inspect' from /Users/matt/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rubocop-0.6.0/lib/rubocop/cop/space_after_comma_etc.rb:9:in
each_index'from /Users/matt/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rubocop-0.6.0/lib/rubocop/cop/space_after_comma_etc.rb:9:in
inspect' from /Users/matt/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rubocop-0.6.0/lib/rubocop/cli.rb:74:in
block (2 levels) in run'from /Users/matt/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rubocop-0.6.0/lib/rubocop/cli.rb:66:in
each' from /Users/matt/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rubocop-0.6.0/lib/rubocop/cli.rb:66:in
block in run'from /Users/matt/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rubocop-0.6.0/lib/rubocop/cli.rb:44:in
each' from /Users/matt/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rubocop-0.6.0/lib/rubocop/cli.rb:44:in
run'from /Users/matt/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rubocop-0.6.0/bin/rubocop:13:in
block in <top (required)>' from /Users/matt/.rbenv/versions/1.9.3-p327/lib/ruby/1.9.1/benchmark.rb:295:in
realtime'from /Users/matt/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rubocop-0.6.0/bin/rubocop:12:in
<top (required)>' from /Users/matt/.rbenv/versions/1.9.3-p327/bin/rubocop:23:in
load'from /Users/matt/.rbenv/versions/1.9.3-p327/bin/rubocop:23:in `
The text was updated successfully, but these errors were encountered: