From 5014e79cc35582cdd012a4b969898e6e1fa5c728 Mon Sep 17 00:00:00 2001 From: Kurihara Jun Date: Sun, 15 Mar 2020 03:19:53 +0900 Subject: [PATCH] Add pre-commit-hook for formatting source (#4) * 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. --- .pre-commit-hooks.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 0000000..324b935 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,5 @@ +- id: dotnet-format + name: dotnet-format + entry: dotnet format --files + language: system + files: '\.(cs|vb)$' \ No newline at end of file