Skip to content

Commit

Permalink
tool: add Super-linter
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.NiuZH <[email protected]>
  • Loading branch information
MRNIU committed Dec 4, 2024
1 parent da305db commit fbd98d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
packages: read
statuses: write
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -69,3 +71,8 @@ jobs:
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_dir: ${{github.workspace}}/doc/html

- name: Super-Linter
uses: super-linter/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
12 changes: 0 additions & 12 deletions cmake/3rd.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -316,18 +316,6 @@ add_custom_target(clang-tidy
> ${CMAKE_BINARY_DIR}/clang_tidy_report.log 2>&1
)

# clang-format
find_program(CLANG_FORMAT_EXE NAMES clang-format)
if (NOT CLANG_FORMAT_EXE)
message(FATAL_ERROR "clang-format not found.\n"
"Following https://clang.llvm.org/docs/ClangFormat.html to install.")
endif ()
add_custom_target(clang-format
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Run clang-format on ${ALL_SOURCE_FILES} ..."
COMMAND ${CLANG_FORMAT_EXE} -i -style=file ${ALL_SOURCE_FILES}
)

if (CMAKE_SYSTEM_PROCESSOR STREQUAL CMAKE_HOST_SYSTEM_PROCESSOR)
# genhtml 生成测试覆盖率报告网页
find_program(GENHTML_EXE genhtml)
Expand Down

0 comments on commit fbd98d7

Please sign in to comment.