Skip to content

Commit 3efbd1e

Browse files
committed
just: recipe cmake-format-fix
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent 97a867b commit 3efbd1e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

justfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ sourceBuildTestDir := "build-tests-QOwnNotes"
1717

1818
alias fix-linting := clang-format
1919
alias linter-fix := clang-format
20+
alias fix-cmake-format := cmake-format-fix
2021
alias trace-process := process-trace
2122
alias test := src-test
2223
alias download-translations := translations-download
@@ -144,6 +145,11 @@ src-build-run: src-build src-run
144145
clang-format:
145146
./scripts/clang-format-project.sh
146147

148+
# Fix formatting of the source CMake file
149+
[group('linter')]
150+
cmake-format-fix:
151+
cmake-format -i src/CMakeLists.txt
152+
147153
# Check links in the markdown files
148154
[group('linter')]
149155
link-check:

0 commit comments

Comments
 (0)