+
Skip to content

feat(cli): add new --files option to biome rage to output includes #6886

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

christymcgrory
Copy link

@christymcgrory christymcgrory commented Jul 14, 2025

Summary

This PR enables the ability to view the includes array from the config file, as well as ignoreUnknown. The primary motivation for this was validating the ordering of glob patterns after biome resolves an extends field and merges with another configuration.

Eventually the goal is to be able to print the merged extends configuration and output it to a file for inspection (debugging in a large monorepo can be painful).

Test Plan

  1. cargo build --bin biome
  2. Generate a minimal extends scenario in a monorepo:
# biome.json
{
	"root": true,
	"files":  {
		"includes": ["**"]
	}
}

# packages/test/biome.json
{
	"root": false,
	"files":  {
		"includes": ["!**/_generated_/**"]
	}
}
  1. Run the compiled biome binary against packages/test: biome rage --files
  2. Confirm the output is as expected.

Copy link

changeset-bot bot commented Jul 14, 2025

🦋 Changeset detected

Latest commit: 0cb4622

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@biomejs/cli-darwin-arm64 Minor
@biomejs/cli-darwin-x64 Minor
@biomejs/cli-linux-arm64 Minor
@biomejs/cli-linux-arm64-musl Minor
@biomejs/cli-linux-x64 Minor
@biomejs/cli-linux-x64-musl Minor
@biomejs/cli-win32-arm64 Minor
@biomejs/cli-win32-x64 Minor
@biomejs/backend-jsonrpc Patch
@biomejs/biome Minor
@biomejs/wasm-web Minor
@biomejs/wasm-bundler Minor
@biomejs/wasm-nodejs Minor
@biomejs/js-api Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added A-CLI Area: CLI A-Project Area: project labels Jul 14, 2025
@ematipico
Copy link
Member

The --verbose outputs the "handled" files when you run format/lint/check. Isn't that information enough?

I like the proposal, and maybe we can print the information without the --files flag. On the other hand, we also have formatter.includes, etc., and I believe we should print them too.

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载