mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-09 12:25:17 -04:00
Enforce space only indendation in CMake files
This commit is contained in:
parent
cc066efa11
commit
a527db8ca7
@ -132,6 +132,7 @@ Clang_Format:
|
|||||||
before_script:
|
before_script:
|
||||||
- CI/install_debian_deps.sh openmw-clang-format
|
- CI/install_debian_deps.sh openmw-clang-format
|
||||||
script:
|
script:
|
||||||
|
- CI/check_cmake_format.sh
|
||||||
- CI/check_file_names.sh
|
- CI/check_file_names.sh
|
||||||
- CI/check_clang_format.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…
x
Reference in New Issue
Block a user