1
0
Fork 0
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:
elsid 2023-03-10 15:07:16 +01:00
parent cc066efa11
commit a527db8ca7
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
2 changed files with 7 additions and 0 deletions

View file

@ -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
View 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