pre-commit-hook: Updated

This commit is contained in:
Henry Weller
2018-07-06 23:20:15 +01:00
parent bf54ab67e1
commit ca24ad75c6
2 changed files with 8 additions and 8 deletions

0
bin/tools/HookFunctions Executable file → Normal file
View File

View File

@ -2,7 +2,7 @@
#---------------------------------*- sh -*------------------------------------- #---------------------------------*- sh -*-------------------------------------
# ========= | # ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | # \\ / O peration | Website: https://openfoam.org
# \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation # \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
# \\/ M anipulation | # \\/ M anipulation |
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
@ -100,25 +100,25 @@ fi
# Main code. Do all checks. # Main code. Do all checks.
# #
# builtin whitespace check to avoid trailing space, including CR-LF endings # Builtin whitespace check to avoid trailing space, including CR-LF endings
bad=$(git diff-index --cached --check $against --) || die "$bad" bad=$(git diff-index --cached --check $against --) || die "$bad"
# check for illegal code, e.g. <TAB>, etc # Check for illegal code, e.g. <TAB>, etc
checkIllegalCode checkIllegalCode
# ensure code conforms to 80 columns max # Ensure code conforms to 80 columns max
checkLineLengthNonDirective checkLineLengthNonDirective
# check for non-standard code patterns # Check for non-standard code patterns
checkNonStandardCodePatterns checkNonStandardCodePatterns
# check if #ifndef/#define bounds are named correctly # Check if #ifndef/#define bounds are named correctly
checkHeaderIfndefNames checkHeaderIfndefNames
# check banner # Check banner
checkBanner checkBanner
# check copyright # Check copyright
checkCopyright checkCopyright
exit 0 exit 0