-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Add git pre-commit hooks for applying formatting to source #27632
Copy link
Copy link
Labels
affected-mediumThis issue impacts approximately half of our customersThis issue impacts approximately half of our customersarea-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing oneseverity-nice-to-haveThis label is used by an internal toolThis label is used by an internal tool
Milestone
Metadata
Metadata
Assignees
Labels
affected-mediumThis issue impacts approximately half of our customersThis issue impacts approximately half of our customersarea-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing oneseverity-nice-to-haveThis label is used by an internal toolThis label is used by an internal tool
Type
Fields
Give feedbackNo fields configured for Feature.
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 formaton modified source files in a particular change set.