Trouble with most of stdlib #2

Closed
rking opened this Issue Nov 13, 2012 · 2 comments

Comments

Projects
None yet
2 participants

@YorickPeterse YorickPeterse added a commit that referenced this issue Nov 13, 2012

@YorickPeterse YorickPeterse Default values for token/definition attributes.
Various attributes, such as RubyLint::Token::BlockToken#parameters would not
have a defualt value other than `nil`. This would cause code that relies on
these attributes to have non nil values to blow up.

Another example are line numbers and column numbers. Before this commit these
were set to `nil` by default meaning that any type of mathematical expression
would fail since NilClass does not respond to `>`, `-` and so on.

This commit resolves the problem described in issue #2 but I'll leave it open
for a bit longer so I can test some other stdlib code to make sure ruby-lint
doesn't blow up again.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
f95e528
Owner

YorickPeterse commented Nov 16, 2012

Currently RubyLint::Parser is capable of parsing all of the standard library
without shitting itself. However, some of the analysis classes still raise
exceptions due to various cases. Currently I'm working on fixing this, once
handled it's time to see if the parser doesn't miss important information and
the likes.

Owner

YorickPeterse commented Jan 6, 2013

Closing this one for the time being since I'm rewriting the codebase to address various issues with both parsing and analysing Ruby code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment