mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
pre-commit-hook: Updated
This commit is contained in:
0
bin/tools/HookFunctions
Executable file → Normal file
0
bin/tools/HookFunctions
Executable file → Normal 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
|
||||||
|
|||||||
Reference in New Issue
Block a user