-
-
Notifications
You must be signed in to change notification settings - Fork 10
Add analyzer for leap exercise #105
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
Conversation
|
Re-opened as this has been pre-approved. |
|
Thanks, @SleeplessByte , just got notification from exercism/ruby#1532 (comment) So things seem to be connected properly. I was coming to reopen it as it is preapproved. |
8a083b1 to
0a0a268
Compare
fb2020b to
81997f1
Compare
| class Representation < SolutionRepresentation | ||
| def uses_std_lib? | ||
| date_node = SA::Helpers.extract_nodes(:const, target_method).find { |node| node.const_name == 'Date' } | ||
| return false if date_node.nil? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| return false if date_node.nil? | |
| return false unless date_node |
|
@SleeplessByte I think this is ready for review, as you are more familiar with the functionality of the analyzers (I have not looked at what it does nor the results for a long time). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Before merging, please confirm the ruby/leap/std_lib.markdown file exists in the website-copy repository inside the analyzer subtree.
For ease of navigation, this means: https://github.com/exercism/website-copy/tree/main/analyzer-comments/ruby @PatrickMcSweeny you will need to address this, and please remember to link to relevant URI's such as the relevant forum post, and this PR and the issue created as well, so that things link up and is easy to get for folks reading and reviewing. |
|
Thanks @PatrickMcSweeny for working on this! |
Closes exercism/ruby#1532