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

Improve CoreTools.FormatAsName For Multi-Word vcpkg Options #3023

Merged
merged 3 commits into from
Dec 1, 2024

Conversation

mrixner
Copy link
Contributor

@mrixner mrixner commented Nov 28, 2024

  • I have read the contributing guidelines, and I agree with the Code of Conduct.
  • Have you checked that there aren't other open pull requests for the same changes?
  • Have you tested that the committed code can be executed without errors?
  • This PR is not composed of garbage changes used to farm GitHub activity to enter potential Crypto AirDrops.
    Any user suspected of farming GitHub activity with crypto purposes will get banned. Submitting broken code wastes the contributors' time, who have to spend their free time reviewing, fixing, and testing code that does not even compile breaks other features, or does not introduce any useful changes. I appreciate your understanding.

This PR changes CoreTools.FormatAsName to format multi-word vcpkg options consistently.
Before this PR, vcpkg options with multiple words would have their first word lowercase, and the following words uppercase, but this is inconsistent and looks odd.
image

@marticliment
Copy link
Owner

marticliment commented Nov 28, 2024

Could you please add some tests to src/UniGetUI.Core.Tools.Tests/ToolsTests.cs#62 for a case where the introduced changes are used?

@mrixner
Copy link
Contributor Author

mrixner commented Nov 29, 2024

I forgot about the tests! Yes, I'll do that when I can.

@mrixner mrixner marked this pull request as draft November 29, 2024 01:23
@mrixner mrixner marked this pull request as ready for review November 29, 2024 16:13
@marticliment marticliment merged commit 16c43bf into marticliment:main Dec 1, 2024
2 checks passed
@mrixner mrixner deleted the improve-name-maker branch December 1, 2024 16:23
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.

2 participants