Skip to content

[CLEANUP] Split Color::parse into separate methods #799

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

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

JakeQZ
Copy link
Collaborator

@JakeQZ JakeQZ commented Jan 23, 2025

One for hex colors, and one for color functions.
This reduces cyclomatic complexity on a per-method basis.

One for hex colors, and one for color functions.
This reduces cyclomatic complexity on a per-method basis.
@coveralls
Copy link

coveralls commented Jan 23, 2025

Coverage Status

coverage: 41.369% (-0.004%) from 41.373%
when pulling 2e25458 on cleanup/color-parse
into f3ea6a7 on main.

@JakeQZ
Copy link
Collaborator Author

JakeQZ commented Jan 23, 2025

I'd recommend reviewing the changes with the 'hide whitespace' option enabled; otherwise it will look like there are a lot of changes, when in fact there aren't, because all that's happened is that the indentation has been decreased. (I don't know if there's a similar option for merging/rebasing, should it be needed.)

@JakeQZ JakeQZ requested a review from oliverklee January 23, 2025 15:55
@oliverklee oliverklee merged commit 9e79e16 into main Jan 23, 2025
21 checks passed
@oliverklee oliverklee deleted the cleanup/color-parse branch January 23, 2025 16:09
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