Skip to content

Conversation

kahgoh
Copy link
Member

@kahgoh kahgoh commented Jul 15, 2025

Analyzer comments in exercism/website-copy#2387

Closes #450

@kahgoh kahgoh force-pushed the exercise/gotta-snatch-em-all branch from f9544bc to 7260296 Compare July 15, 2025 14:33
@kahgoh
Copy link
Member Author

kahgoh commented Jul 19, 2025

I notice is failing, but I think its because the comments aren't yet in the website-copy. Is there anything I need to do?

@angelikatyborska
Copy link
Member

No, there's nothing more that you should do - you have already created the PR with the comments 🙂 when we review this PR, we will first merge the analyzer comments, then rerun the CI to see it all turn green.

I'm currently swamped with life stuff so I was hoping @jiegillet can find the time to review this.

@jiegillet
Copy link
Contributor

I'm also a bit tight these days, but I'll have time soon, I'll get to this :)

Copy link
Contributor

@jiegillet jiegillet left a comment

Choose a reason for hiding this comment

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

Sorry, this isn't an in-depth review yet, and it looks good from a bird's eye view, but we usually add tests for new rules.

The idea for the tests is not to test the mechanics of the analyzer, but to "justify" or explain the rules. If a rule is "don't use X", we commit a test with a solution where X is used, and we can see how the code is worse. If the solution with X is actually better, or if there is no way of finding a solution with X, then it means that the rule itself is not actually helping.

Each test doesn't need to include the full solution, if a rule is about function f, just including the module with f defined is fine.

@kahgoh
Copy link
Member Author

kahgoh commented Aug 20, 2025

No worries @jiegillet 😉. Thanks for taking a look!

Double checking my understanding in regards to the tests - are the tests like the ones in test/elixir_analyzer/test_suite?

@jiegillet
Copy link
Contributor

Yes, exactly!

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.

Write analysis for concept exercise gotta-snatch-em-all
3 participants