mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added DOS-style line ending check to git hook
This commit is contained in:
@ -97,8 +97,8 @@ dieOnBadFiles()
|
||||
#
|
||||
checkIllegalCode()
|
||||
{
|
||||
reBad="(N""abla|"$'\t'")"
|
||||
msgBad="N""abla or <TAB>"
|
||||
reBad="(N""abla|"$'\t'"|"$'\r\n'")"
|
||||
msgBad="N""abla, <TAB>, or DOS-style line ending"
|
||||
|
||||
badFiles=$(
|
||||
for f in $fileList
|
||||
@ -219,4 +219,5 @@ checkLineLength
|
||||
|
||||
|
||||
exit 0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user