Skip to content

[Feature request] Add a flag to the CLI that would commit and add the hash to a .git-blame-ignore-revs file #2426

Open
@baronfel

Description

@baronfel

I propose we add a command to the CLI to make hiding purely-formatting commits easier. Formatting commits can clutter history, but are necessary to the maintenance of consistent style, so a tool that made it easier to keep code and history clean would be very useful. I saw this in a discussion of scala steward, a Scala formatting tool, and thought it was a very nifty idea.

The existing way of Fantomas deals with this problem is to leave it to the user to commit and add the commit SHA to .git-blame-ignore-revs.

Pros and Cons

The advantages of making this adjustment to Fantomas are a nicer user experience in tools that support hiding formatting commits.

The disadvantages of making this adjustment to Fantomas are increased scope and complexity, and moving the tool into a space it doesn't 100% sit in at the moment - Fantomas doesn't make commits, it just makes changes that you can then put into commits.

Extra information

Estimated cost (XS, S, M, L, XL, XXL): M

Affidavit (please submit!)

Please tick this by placing a cross in the box:

Please tick all that apply:

  • This is not a breaking change to Fantomas
  • I or my company would be willing to help implement and/or test this
  • This suggestion is part of the Microsoft style guide (please add a link to section if so)
  • This suggestion is part of the G-Research style guide (please add a link to section if so)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions