Skip to content

Use nixfmt-rfc-style post-codegen to ensure consistent formatted output #564

@pluiedev

Description

@pluiedev

Instead of trying to embed whitespace and formatting into the builders themselves, why not just emit a minimized yet syntactically correct file and properly format it with nixfmt-rfc-style (or whatever formatter the user wants e.g. Alejandra)? This will massively simplify the codebase and leave concerns of style and formatting to other tools that are tailor-made for that task, IMO

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions