1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-15 13:20:48 +00:00
OpenMW/CI/check_file_names.sh
2025-02-23 00:18:07 +03:00

7 lines
268 B
Bash
Executable File

#!/bin/bash -ex
git ls-files -- ':(exclude)extern/' '*.cpp' '*.hpp' '*.h' |
grep -vP '/[a-z0-9]+\.(cpp|hpp|h)$' &&
( echo 'File names do not follow the naming convention, see https://wiki.openmw.org/index.php?title=Naming_Conventions#Files'; exit -1 )
exit 0