Skip to content

Conversation

@PatrickMcSweeny
Copy link
Contributor

@PatrickMcSweeny PatrickMcSweeny commented Jun 17, 2025

Closes #10
Closes #13

@PatrickMcSweeny PatrickMcSweeny requested a review from a team as a code owner June 17, 2025 14:36
@github-actions
Copy link

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

If you're interested in learning more about this auto-responder, please read this blog post.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

@SleeplessByte
Copy link
Member

I re-opened this per #111 (comment)

@kotp
Copy link
Member

kotp commented Jun 17, 2025

I re-opened this per #111 (comment)

You might want to stick around a bit for this, I do not have access at this level to approve or open, but I can close. So it is a "mix of permissions" concerns here at a minimum. Some one that does not have the rights to reopen or approve affectively probably should not have rights to close.

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.

@kotp here you go, guardian sign-off.

Copy link
Member

@kotp kotp left a comment

Choose a reason for hiding this comment

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

Slight changes to consider, but looks good.

}
end

def approve_if_whitespace_is_sensible(msg = nil, params = {})
Copy link
Member

Choose a reason for hiding this comment

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

The msg seems to be the comment, when I am testing this. Later we use {comment: msg, params:} and if the names are the same this can be reduced to {comment:, params:}.

This happens in two places in this code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I feel that this is outside of the scope of this PR since this is not technically new code. I was just moving it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would like to do another PR to clean up some things up, so I could make this change then if you like.

Copy link
Member

Choose a reason for hiding this comment

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

In some ways this is an "Add analyzer" so making it exemplar now provides a good template for new things coming in. But of course, it does not matter in the grand scheme of things.

end
end

def disapprove(msg, params = {})
Copy link
Member

Choose a reason for hiding this comment

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

Here, as mentioned, is the second place the msg happens when it is likely comment.

# can probably be extracted to parent
# ###

def approve_if_implicit_return!(msg = nil, params = {})
Copy link
Member

Choose a reason for hiding this comment

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

msg can be comment.

Copy link
Member

Choose a reason for hiding this comment

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

If the code is moved, then it is ripe for change as well. Same argument (would rather do it here than have a PR that might not come in). If you are good with that.

@SleeplessByte SleeplessByte requested a review from kotp June 19, 2025 02:23
@kotp kotp merged commit 15ee412 into exercism:main Jun 19, 2025
3 checks passed
@kotp
Copy link
Member

kotp commented Jun 19, 2025

I brought it in, adding a commit to the history about the side effect where TwoFer was affected. (I generally do research using git rather than github, as it is faster, so it makes sense to me to have the "why" in the commits directly.)

@PatrickMcSweeny
Copy link
Contributor Author

The website-copy PR still needs to be merged.

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 auto-approval for high scores Approvable solutions for High Scores

3 participants