From df4c8dfbfe3b7b9c44cb2416a6857efd20d55bfd Mon Sep 17 00:00:00 2001 From: Titan Yuan Date: Fri, 13 Sep 2024 22:42:01 -0700 Subject: [PATCH] Add clang-format to format C# files --- .clang-format | 4 ++++ .pre-commit-config.yaml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 .clang-format create mode 100644 .pre-commit-config.yaml diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..fc26de0 --- /dev/null +++ b/.clang-format @@ -0,0 +1,4 @@ +BasedOnStyle: Google +--- +Language: CSharp +ColumnLimit: 100 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..26d5665 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: v18.1.8 + hooks: + - id: clang-format