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(config): remove overrides.include #5176

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

Conaclos
Copy link
Member

@Conaclos Conaclos commented Feb 22, 2025

Summary

Closes #4611
Fixes #2421
Fixes #3345

This PR completely remove the include field of the Biome config file.
I introduced the new types OverrideGlobs and OverrideIncludes to support Editorconfig.
biome_deserialize always deserialize the globs as Biome globs, while serde deserialize/serialize the two formats that allows LSP deserialization/serialization.

The Editorconfig parser ignores glob patterns that generate errors.
Errors were collected but silently ignored.
We should certainly report the errors as warnings in verbose mode.
I left it for anyone interested in.

I removed out=r old glob implementation.

Also, I noted that another ambiguity about Editorconfig globs.
I updated EditorconfigGlob to take it into account.

Test Plan

I updated the tests.

@github-actions github-actions bot added A-CLI Area: CLI A-Project Area: project labels Feb 22, 2025
@Conaclos Conaclos requested review from a team February 22, 2025 18:19
@Conaclos Conaclos force-pushed the conaclos/editorconfig-includes branch from f83164d to 3e6ad06 Compare February 22, 2025 19:31
@Conaclos Conaclos force-pushed the conaclos/editorconfig-includes branch from 3e6ad06 to 23a01a0 Compare February 23, 2025 10:10
@Conaclos Conaclos merged commit 538f87d into main Feb 23, 2025
12 checks passed
@Conaclos Conaclos deleted the conaclos/editorconfig-includes branch February 23, 2025 10:40
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
2 participants