Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
Add pre-commit-hook for formatting source (#4)
Browse files Browse the repository at this point in the history
* Add pre-commit-hook for formatting source

This commit is to add the pre-commit hook which format source code
of csharp and vb.
It is used the command "dotnet format".

* Modify indent

This commit is to modify indent space of id.
It need 3 spaces.

* Add argument of files

This commit is to add the argument "--files" which set formatting
file path.
  • Loading branch information
kuju63 authored Mar 14, 2020
1 parent a40f02e commit 5014e79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- id: dotnet-format
name: dotnet-format
entry: dotnet format --files
language: system
files: '\.(cs|vb)$'

0 comments on commit 5014e79

Please sign in to comment.