Skip to content

Commit 894bd14

Browse files
authored
fix(lint): Register Catch2 and custom CMake modules with Gersemi. (#42)
1 parent d70e210 commit 894bd14

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gersemirc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# yamllint disable-line rule:line-length
22
# yaml-language-server: $schema=https://raw.githubusercontent.com/BlankSpruce/gersemi/master/gersemi/configuration.schema.json
33

4-
definitions: ["CMake/ystdlib-cpp-helpers.cmake"]
4+
definitions:
5+
- "CMake/ystdlib-cpp-helpers.cmake"
6+
- "build/deps/Catch2/Catch2-src/extras/Catch.cmake"
57
line_length: 100
68
list_expansion: "favour-expansion"

taskfiles/lint-cmake.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ tasks:
4242
- "FLAGS"
4343
dir: "{{.ROOT_DIR}}"
4444
deps:
45+
- ":deps:install-all" # Allow Gersemi to parse 3rdparty CMake modules for linting
4546
- "venv"
4647
cmds:
4748
- |-

0 commit comments

Comments
 (0)