Skip to content

Add bevy fmt. #670

@coolcatcoder

Description

@coolcatcoder

What problem does this solve or what need does it fill?

cargo fmt does not format all rust files in src. It instead formats all modules it can find. If the modules are imported from a macro, then it simply will not format them. Modules imported by a macro can allow for some very powerful techniques that I believe would benefit bevy.

What solution would you like?

A bevy fmt would run rustfmt individually on each rust file in src.

What alternative(s) have you considered?

I have my own cargo please_format, but this behaviour seems useful to more than just me.

Additional context

Some discussion in the discord.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIRelated to the main CLI and not a more specific subcommandC-FeatureMake something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesX-ControversialThere is active debate or serious implications around merging this PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions