Skip to content
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

Removing isEmpty() comment from hamming analyzer #95

Merged

Conversation

manumafe98
Copy link
Contributor

@manumafe98 manumafe98 commented Jan 27, 2024

Fixes #94

The goal is to remove an old analyzer comment that after an exercise reformat is not useful anymore.

I guess is should open a PR to remove this from the website-copy right?

@manumafe98 manumafe98 requested a review from a team as a code owner January 27, 2024 14:44
@manumafe98
Copy link
Contributor Author

Sidenote: the gradlew.bat file changed alone, but it seems like is the same, I tried restoring the changes but does not seem to work for some reason.

@sanderploegsma
Copy link
Contributor

Sidenote: the gradlew.bat file changed alone, but it seems like is the same, I tried restoring the changes but does not seem to work for some reason.

That's fine, I think the line endings were automatically converted by Git. No need to revert it!

@sanderploegsma
Copy link
Contributor

I guess is should open a PR to remove this from the website-copy right?

Not strictly required, I believe there are some more templates there that are no longer being used. We need to do some housekeeping there anyway.

You are welcome to open a PR to remove the template though. If you do, we should make sure it's not merged before this PR.

@manumafe98
Copy link
Contributor Author

It's normal that the pipeline is failing? there were two steps, a docker one, and the coverage one, or i'm missing something else? Thanks

@sanderploegsma
Copy link
Contributor

It's normal that the pipeline is failing? there were two steps, a docker one, and the coverage one, or i'm missing something else? Thanks

The tests folder contains a couple of smoke tests for each exercise. It looks like the one in tests/hamming is expecting to receive the removed comment, see tests/hamming/expected_analysis.json. You can just update that file to no longer expect that comment to be present, and the smoke tests should turn green again.

@sanderploegsma
Copy link
Contributor

As for the test coverage decreasing, that is expected since you removed some lines that were covered, so the overall coverage of the affected files drops with it. No need to worry about that.

@manumafe98
Copy link
Contributor Author

It's normal that the pipeline is failing? there were two steps, a docker one, and the coverage one, or i'm missing something else? Thanks

The tests folder contains a couple of smoke tests for each exercise. It looks like the one in tests/hamming is expecting to receive the removed comment, see tests/hamming/expected_analysis.json. You can just update that file to no longer expect that comment to be present, and the smoke tests should turn green again.

Done!

Copy link
Contributor

@sanderploegsma sanderploegsma left a comment

Choose a reason for hiding this comment

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

Great stuff!

@sanderploegsma sanderploegsma added the x:size/small Small amount of work label Jan 27, 2024
@sanderploegsma sanderploegsma merged commit 5a68799 into exercism:main Jan 27, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:size/small Small amount of work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove comment to use isEmpty() from Hamming analyzer
3 participants