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

refactor(diagnostics): change enum hierarchy for configuration diagnostics #2922

Merged
merged 1 commit into from
May 20, 2024

Conversation

dyc3
Copy link
Contributor

@dyc3 dyc3 commented May 20, 2024

Summary

This is part of a series of PRs for adding .editorconfig support to biome. Specifically, this PR follows up on this comment thread: #2884 (comment)

Part of this refactor is also to prefer using into(), or the ? operator's implicit call to into() on error types because it's a little bit easier to read, and can make it a little less tedious to do future refactors.

Related to: #1724

Test Plan

It compiles and tests pass.

@github-actions github-actions bot added A-CLI Area: CLI A-Project Area: project labels May 20, 2024
@dyc3 dyc3 mentioned this pull request May 20, 2024
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

All good. We should remove Display

crates/biome_configuration/src/diagnostics.rs Outdated Show resolved Hide resolved
@ematipico ematipico merged commit a192ad6 into biomejs:main May 20, 2024
10 checks passed
@dyc3 dyc3 deleted the refactor-diag branch May 20, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: CLI A-Project Area: project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants