Skip to content

Conversation

@PatrickMcSweeny
Copy link
Contributor

@PatrickMcSweeny PatrickMcSweeny requested a review from a team as a code owner May 19, 2025 00:11
@github-actions github-actions bot closed this May 19, 2025
@SleeplessByte SleeplessByte reopened this May 19, 2025
@SleeplessByte
Copy link
Member

Re-opened as this has been pre-approved.

@kotp
Copy link
Member

kotp commented May 19, 2025

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.

@exercism exercism deleted a comment from github-actions bot May 19, 2025
@PatrickMcSweeny PatrickMcSweeny force-pushed the leap branch 2 times, most recently from 8a083b1 to 0a0a268 Compare May 19, 2025 00:45
@PatrickMcSweeny PatrickMcSweeny force-pushed the leap branch 2 times, most recently from fb2020b to 81997f1 Compare May 19, 2025 01:00
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?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return false if date_node.nil?
return false unless date_node

@kotp
Copy link
Member

kotp commented May 19, 2025

@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).

Copy link
Member

@SleeplessByte SleeplessByte left a 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.

@kotp
Copy link
Member

kotp commented May 19, 2025

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.

@kotp kotp merged commit 352517b into exercism:main May 23, 2025
3 checks passed
@SleeplessByte
Copy link
Member

Thanks @PatrickMcSweeny for working on this!

@PatrickMcSweeny PatrickMcSweeny deleted the leap branch May 30, 2025 15:55
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

Successfully merging this pull request may close these issues.

Add analyzer for leap

3 participants