From 65c0d4c5bb671cb2d32c5d1c36a5c02ddaa01a65 Mon Sep 17 00:00:00 2001 From: "Zone.N" Date: Fri, 6 Dec 2024 09:09:00 +0000 Subject: [PATCH] test pre-commit Signed-off-by: Zone.N --- .pre-commit-config.yaml | 10 ++++++++++ cmake/project_config.cmake | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 803d954e..ba6ee76c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,11 +22,21 @@ repos: - id: clang-format args: - --style=file + - id: clang-tidy + args: + - --checks=.clang-tidy + - -p=/root/SimpleKernel/build_riscv64/compiler_commands.json + - -extra-arg=--std=c++2b - id: clang-tidy args: - --checks=.clang-tidy - -p=/root/SimpleKernel/build_x86_64/compiler_commands.json - -extra-arg=--std=c++2b + - id: clang-tidy + args: + - --checks=.clang-tidy + - -p=/root/SimpleKernel/build_aarch64/compiler_commands.json + - -extra-arg=--std=c++2b - repo: https://github.com/koalaman/shellcheck-precommit rev: v0.10.0 diff --git a/cmake/project_config.cmake b/cmake/project_config.cmake index bf63b3a3..58f6ceb2 100644 --- a/cmake/project_config.cmake +++ b/cmake/project_config.cmake @@ -55,5 +55,5 @@ ENDIF() # 生成项目配置头文件,传递给代码 CONFIGURE_FILE (${CMAKE_SOURCE_DIR}/tools/project_config.h.in ${CMAKE_SOURCE_DIR}/src/project_config.h @ONLY) -CONFIGURE_FILE (${CMAKE_SOURCE_DIR}/tools/.pre-commit-config.yaml.in - ${CMAKE_SOURCE_DIR}/.pre-commit-config.yaml @ONLY) +# CONFIGURE_FILE (${CMAKE_SOURCE_DIR}/tools/.pre-commit-config.yaml.in +# ${CMAKE_SOURCE_DIR}/.pre-commit-config.yaml @ONLY)