diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1da4364e..03f7fbe2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,6 +6,7 @@ repos: - id: clang-format args: [--style=file] - id: cpplint + args: [--filter=-build/include_subdir] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 diff --git a/src/kernel/main.cpp b/src/kernel/main.cpp index a24b8499..22fa6ac6 100644 --- a/src/kernel/main.cpp +++ b/src/kernel/main.cpp @@ -29,7 +29,6 @@ void _start(uint32_t argc, uint8_t *argv) { // 进入死循环 while (1) { - ; } } diff --git a/tools/Dockerfile b/tools/Dockerfile index 75caed01..547dbcb7 100644 --- a/tools/Dockerfile +++ b/tools/Dockerfile @@ -36,6 +36,7 @@ RUN apt install --no-install-recommends --fix-missing -y \ uncrustify \ iwyu \ cppcheck \ + cpplint \ lcov RUN locale-gen en_US.UTF-8 && locale-gen zh_CN.UTF-8 \ && mkdir -p /var/run/sshd \