Enforce space only indendation in CMake files

depth-refraction
elsid 1 year ago
parent cc066efa11
commit a527db8ca7
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

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

@ -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…
Cancel
Save