Skip to content

Commit 3423a36

Browse files
committed
tools/check-code.sh: Add check for IsValidHeadstage/IsAssociatedChannel
1 parent 51a1ecd commit 3423a36

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tools/check-code.sh

+9
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,15 @@ then
178178
ret=1
179179
fi
180180

181+
matches=$(git grep $opts '(IsNaN|IsFinite)\(\.*head.*\)' '**/MIES_*.ipf' '**/UTF*.ipf')
182+
183+
if [[ -n "$matches" ]]
184+
then
185+
echo "The IsValidHeadstage/IsAssociatedChannel check failed and found the following occurences:"
186+
echo "$matches"
187+
ret=1
188+
fi
189+
181190
# ripgrep checks
182191

183192
files=$(git ls-files '*.ipf' '*.sh' '*.rst' '*.dot' '*.md' ':!:**/releasenotes_template.rst' ':^*/IPA_Control.ipf')

0 commit comments

Comments
 (0)