Skip to content

📎 Implement targeted light scanner #6234

@arendjr

Description

@arendjr

Description

With Biome 2, we introduced the scanner, which is used for finding nested biome.json files as well as .gitignore files if configured (both these are handled by the "light scanner"). If any rules from the project domain are enabled, we enable the "full scanner" which indexes the entire project, including node_modules, in order to populate the module graph and extract type information.

Whenever only the "light scanner" is enabled and we are running on the CLI and we are given an exact list of files to process, we should be able to perform an even more targeted version of the light scan. Instead of scanning "wide" from the project root, we can start from the files to process and only scan upwards to the project root. That should give us all the information we need for the invocation, and speed up use cases such as Git hooks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CoreArea: coreS-Help-wantedStatus: you're familiar with the code base and want to help the project

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions