mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 13:56:38 +00:00 
			
		
		
		
	File names should follow https://wiki.openmw.org/index.php?title=Naming_Conventions#Files. Enforce this in CI. Add a list of exceptions for already present files.
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/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
 |