Skip to content

Commit

Permalink
chore: rename lint.cmake-format task [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 17, 2023
1 parent 3bc9119 commit 85d1057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tasks:
- cmd: git ls-files --exclude-standard | grep -E '\.(cpp|hpp|c|cc|cxx|hxx|ixx)$' | xargs clang-format -i -style=file
platforms: [linux, darwin]

lint.cmake-format:
lint.cmake:
cmds:
- cmd: powershell -c '$files=(git ls-files --exclude-standard); foreach ($file in $files) { $item=(get-item $file); if (($item.Name -eq "CMakeLists.txt") -or ($item.Extension -in ".cmake")) { cmake-format --in-place $file; cmake-lint $file {{.CMAKE_LINT_FLAGS}} } }'
platforms: [windows]
Expand All @@ -48,7 +48,7 @@ tasks:
deps:
- lint.cspell
- lint.clang-format
- lint.cmake-format
- lint.cmake
- myproj:lint
- install:lint
- minimal:lint
Expand Down

0 comments on commit 85d1057

Please sign in to comment.