Skip to content

Commit

Permalink
Update quality-gate
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Hoes <[email protected]>
  • Loading branch information
robhoes committed Dec 4, 2024
1 parent 2b02240 commit fd011dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quality-gate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

list-hd () {
N=293
N=277
LIST_HD=$(git grep -r --count 'List.hd' -- **/*.ml | cut -d ':' -f 2 | paste -sd+ - | bc)
if [ "$LIST_HD" -eq "$N" ]; then
echo "OK counted $LIST_HD List.hd usages"
Expand All @@ -14,7 +14,7 @@ list-hd () {
}

verify-cert () {
N=14
N=13
NONE=$(git grep -r --count 'verify_cert:None' -- **/*.ml | cut -d ':' -f 2 | paste -sd+ - | bc)
if [ "$NONE" -eq "$N" ]; then
echo "OK counted $NONE usages of verify_cert:None"
Expand Down Expand Up @@ -106,7 +106,7 @@ unixgetenv () {
}

hashtblfind () {
N=36
N=35
# Looks for all .ml files except the ones using Core.Hashtbl.find,
# which already returns Option
HASHTBLFIND=$(git grep -P -r --count 'Hashtbl.find(?!_opt)' -- '**/*.ml' ':!ocaml/xapi-storage-script/main.ml' | cut -d ':' -f 2 | paste -sd+ - | bc)
Expand Down

0 comments on commit fd011dd

Please sign in to comment.