Skip to content

Add git pre-commit hooks for applying formatting to source #27632

@captainsafia

Description

@captainsafia

Our repos formatting currently defaults to the formatting applied by default in VS. This can be cumbersome for users who are working in non-VS editors with the repo or users who disable format on save in their IDE.

We should consider adding a git pre-commit hook that runs dotnet format on modified source files in a particular change set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-mediumThis issue impacts approximately half of our customersarea-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkenhancementThis issue represents an ask for new feature or an enhancement to an existing oneseverity-nice-to-haveThis label is used by an internal tool

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions