mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-29 17:15:34 +00:00
Enforce space only indendation in CMake files
This commit is contained in:
parent
cc066efa11
commit
a527db8ca7
2 changed files with 7 additions and 0 deletions
|
@ -132,6 +132,7 @@ Clang_Format:
|
|||
before_script:
|
||||
- CI/install_debian_deps.sh openmw-clang-format
|
||||
script:
|
||||
- CI/check_cmake_format.sh
|
||||
- CI/check_file_names.sh
|
||||
- CI/check_clang_format.sh
|
||||
|
||||
|
|
6
CI/check_cmake_format.sh
Executable file
6
CI/check_cmake_format.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
git ls-files -- ':(exclude)extern/' 'CMakeLists.txt' '*.cmake' |
|
||||
xargs grep -P '^\s*\t' &&
|
||||
( echo 'CMake files contain leading tab character. Use only spaces for indentation'; exit -1 )
|
||||
exit 0
|
Loading…
Reference in a new issue