Skip to content
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

Closed
matthewford opened this issue Apr 24, 2013 · 4 comments
Closed

Issue with whitespace?': undefined method #93

matthewford opened this issue Apr 24, 2013 · 4 comments

Comments

@matthewford
Copy link

/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 methodtype' 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:ineach_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:inblock (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:inblock 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:inrun'
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:inrealtime'
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:inload'
from /Users/matt/.rbenv/versions/1.9.3-p327/bin/rubocop:23:in `

'

@matthewford
Copy link
Author

This is the repo btw: https://github.com/alphagov/whitehall/

@bbatsov
Copy link
Collaborator

bbatsov commented Apr 25, 2013

@jonas054, can you look into this?

@jonas054
Copy link
Collaborator

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.
@jonas054
Copy link
Collaborator

I reproduced the error by scanning this file.

@bbatsov bbatsov closed this as completed Apr 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants