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

Fix warnings reported on CliBase. #1793

Merged
merged 1 commit into from
May 28, 2023
Merged

Fix warnings reported on CliBase. #1793

merged 1 commit into from
May 28, 2023

Conversation

petervdonovan
Copy link
Collaborator

@petervdonovan petervdonovan commented May 28, 2023

The comparison of strings to string literals looks like a critical error which I think would have been caught by sufficient tests.

One of these warnings is incorrect, but we might as well silence it with an assertion.

The warning about toArray is merely a matter of best practice. A human couldn't be expected to know about this, but the warning emitted by IntelliJ is correct.

I'm not sure I have time to add tests for this at the moment or to do a close second read of this code but we also don't want to leave wrong code sitting around.

The comparison of strings to string literals looks like a critical
error which I think would have been caught by sufficient tests.

One of these warnings is incorrect, but we might as well silence it with
an assertion.

The warning about toArray is merely a matter of best practice. A human
couldn't be expected to know about this, but the warning emitted by
IntelliJ is correct.
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes. These are pretty bad 🤦

@lhstrh lhstrh merged commit a0b93a8 into master May 28, 2023
@lhstrh lhstrh added the bugfix label May 28, 2023
@cmnrd cmnrd deleted the fix-clibase-warnings branch June 1, 2023 07:43
@cmnrd
Copy link
Collaborator

cmnrd commented Jun 1, 2023

Now that we have formatting addressed, we should also introduce linting and enforce that the code is warning free. I opened #1806

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants