From 297444db855a2c87c5f398ff322d17e75fa4e8e9 Mon Sep 17 00:00:00 2001 From: "H. Joe Lee" Date: Thu, 12 Feb 2026 12:09:27 -0600 Subject: [PATCH] ci: add cpplint action close #27 --- .github/workflows/cpplint.yml | 8 ++++++++ CPPLINT.cfg | 25 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/cpplint.yml diff --git a/.github/workflows/cpplint.yml b/.github/workflows/cpplint.yml new file mode 100644 index 00000000..cd15f7b6 --- /dev/null +++ b/.github/workflows/cpplint.yml @@ -0,0 +1,8 @@ +name: cpplint +on: [push, pull_request] +jobs: + cpplint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - run: pipx run cpplint --recursive . diff --git a/CPPLINT.cfg b/CPPLINT.cfg index 86ecd2e7..f97e1c44 100644 --- a/CPPLINT.cfg +++ b/CPPLINT.cfg @@ -1,3 +1,28 @@ set noparent +exclude_files=external/* filter=-build/header_guard,-build/include_subdir,-runtime/references,-readability/casting,-runtime/int,-build/include,-build/c++11,-build/c++14 +filter=-build/c++17 +filter=-build/namespaces filter=-legal/copyright +filter=-readability/braces +filter=-readability/multiline_comment +filter=-readability/namespace +filter=-readability/todo +filter=-readability/utf8 +filter=-runtime/arrays +filter=-runtime/casting +filter=-runtime/explicit +filter=-runtime/indentation_namespace +filter=-runtime/string +filter=-runtime/threadsafe_fn +filter=-whitespace/blank_line +filter=-whitespace/braces +filter=-whitespace/comments +filter=-whitespace/empty_if_body +filter=-whitespace/end_of_line +filter=-whitespace/ending_newline +filter=-whitespace/indent +filter=-whitespace/indent_namespace +filter=-whitespace/line_length +filter=-whitespace/parens +filter=-whitespace/semicolon