Skip to content

Commit

Permalink
ci(pre-commit): Add cmake-lint hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Dec 4, 2024
1 parent d796890 commit 3297273
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .cmakelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
filter=-linelength,-convention/filename,-package/stdargs
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ repos:
rev: 0.17.1
hooks:
- id: gersemi
- repo: https://github.com/cmake-lint/cmake-lint.git
rev: 1.4.3
hooks:
- id: cmakelint
- repo: local
hooks:
- id: qsscheck
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.21)
# lint_cmake: -readability/wonkycase

message(STATUS "CMAKE_VERSION: ${CMAKE_VERSION}")

Expand Down
2 changes: 2 additions & 0 deletions cmake/modules/FindMediaFoundation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
# MediaFoundation_LIBRARIES - List of libraries when using MediaFoundation
# MediaFoundation_FOUND - True if MediaFoundation found
#
# lint_cmake: -package/consistency

if(MSVC)
set(
Expand Down

0 comments on commit 3297273

Please sign in to comment.