Skip to content

Commit

Permalink
Add formatting check
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-okeefe committed Mar 27, 2024
1 parent 015ea61 commit 2f92160
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ tasks:
format:
desc: Run clang-format over all project files
cmds:
- clang-format -i -style=file src/*.cpp include/**/*.h
- clang-format -i -style=file src/*.cpp
- clang-format -i -style=file include/**/*.h
checkfmt:
desc: Check if there are any formatting problems
cmds:
- clang-format --dry-run --Werror src/*.cpp
- clang-format --dry-run --Werror include/**/*.h
init:
desc: Initialize the build directory
cmds:
Expand Down

0 comments on commit 2f92160

Please sign in to comment.