Skip to content

Commit

Permalink
tools/check-code.sh: Add check for IsValidHeadstage/IsAssociatedChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
t-b committed Feb 3, 2025
1 parent 13196f7 commit 9345430
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/check-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,15 @@ then
ret=1
fi

matches=$(git grep $opts '(IsNaN|IsFinite)\(\.*head.*\)' '**/MIES_*.ipf' '**/UTF*.ipf')

if [[ -n "$matches" ]]
then
echo "The IsValidHeadstage/IsAssociatedChannel check failed and found the following occurences:"
echo "$matches"
ret=1
fi

# ripgrep checks

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

0 comments on commit 9345430

Please sign in to comment.