From 0e618743b28b8731687337a6539c4e158e511bcd Mon Sep 17 00:00:00 2001 From: "Zone.N" Date: Thu, 5 Dec 2024 02:20:01 +0000 Subject: [PATCH] fix cpplint Signed-off-by: Zone.N --- .pre-commit-config.yaml | 1 + src/kernel/main.cpp | 1 - tools/Dockerfile | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) 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 \