From 6b0d9b4cbaf7709c78ac5324b5a365c1291dae9f Mon Sep 17 00:00:00 2001 From: Zijian Zhang Date: Sun, 28 Jan 2024 10:07:47 +0800 Subject: [PATCH] ci: change tidy and format --- .clang-format | 2 +- .clang-tidy | 3 ++- .github/workflows/build.yml | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.clang-format b/.clang-format index 344dea5b..507daa4b 100644 --- a/.clang-format +++ b/.clang-format @@ -38,7 +38,7 @@ CommentPragmas: '^ IWYU pragma:' ConstructorInitializerIndentWidth: 0 IndentWidth: 4 Language: Cpp -MaxEmptyLinesToKeep: 2 +MaxEmptyLinesToKeep: 1 PackConstructorInitializers: CurrentLine PointerAlignment: Left TabWidth: 4 diff --git a/.clang-tidy b/.clang-tidy index 2ac142e3..24731938 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,11 +1,12 @@ --- -Checks: ' +Checks: ' bugprone-*, clang-analyzer-*, concurrency-*, cppcoreguidelines-*, llvm-*, misc-*, +modernize-*, performance-*, portability-*, readability-* diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f859056c..2fc33a60 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,9 @@ jobs: steps: - uses: actions/checkout@v4 - - id: cpp-linter-action + - env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + id: cpp-linter-action uses: cpp-linter/cpp-linter-action@v2 with: files-changed-only: false