Skip to content

Build flag to disable formatting generated code always #344

@sheki

Description

@sheki

Running gofumpt today means “magic” modes: directories skip generated files (so they stay gofmt-style), but feeding the file list directly—like pre-commit
does—marks every file as explicit, so gofumpt rewrites the generated code. That inconsistency keeps tripping people up; This should really gate this behind a flag (e.g. --allow-generated) instead of relying on how arguments were passed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions