Skip to content

oxfmt: Reintroduce summary lines for --write with no config warnings #19913

@leaysgur

Description

@leaysgur

Refs #19904

Currently, Oxfmt CLI's (default) write mode does not display anything to stdout.
When using --check, a list of target files and a summary are displayed.

This behavior was changed in a past version, following cargo fmt like experience.

However, to provide sufficient information to AI agents and other tools, we are considering reintroducing at least the summary lines in write mode.

At the same time, we aim to provide better feedback by adding information about which configuration file was used, along with the summary.


UPDATE: Following a discussion with the team,

If we add a feature to Oxfmt, we will likely need to add it to Oxlint as well.
However, since Oxlint supports nested configurations and more complex settings, displaying which configuration file was used is more difficult than anticipated.

Therefore, for now, as a minimal improvement, we will implement the following two features:

  • Displaying stats again
  • A warning indicating only that the settings were default

Regarding "which configs were used?", we understand it as a debug feature, and believe #19833 also shares a similar motivation.

It seems appropriate to implement these as separate subcommands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions