mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-27 06:14:09 +00:00
8 lines
312 B
Bash
8 lines
312 B
Bash
|
#!/bin/bash -ex
|
||
|
|
||
|
git ls-files -- ':(exclude)extern/' '*.cpp' '*.hpp' '*.h' |
|
||
|
grep -vP '/[a-z0-9]+\.(cpp|hpp|h)$' |
|
||
|
grep -vFf CI/file_name_exceptions.txt &&
|
||
|
( echo 'File names do not follow the naming convention, see https://wiki.openmw.org/index.php?title=Naming_Conventions#Files'; exit -1 )
|
||
|
exit 0
|