You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if rg -n 'Hash\.h|Bitcoin\.h' src --glob '!src/uBitcoin/**' --glob '!src/crypto/UBitcoinBackend.cpp'; then
40
+
if grep -RInE --exclude-dir=uBitcoin --exclude=UBitcoinBackend.cpp 'Hash\.h|Bitcoin\.h' src; then
41
41
echo 'uBitcoin must only be called through UBitcoinBackend' >&2
42
42
exit 1
43
43
fi
44
-
if rg -n '\b(byte|uint8_t|char)[[:space:]]+[A-Za-z_][A-Za-z0-9_]*\[[[:space:]]*(byteSize|messageSize|contentLength|encodedSize|length|NostrString_length)' src examples; then
44
+
if grep -RInE '(^|[^[:alnum:]_])(byte|uint8_t|char)[[:space:]]+[A-Za-z_][A-Za-z0-9_]*\[[[:space:]]*(byteSize|messageSize|contentLength|encodedSize|length|NostrString_length)' src examples; then
45
45
echo 'VLA-like declaration found' >&2
46
46
exit 1
47
47
fi
48
-
test "$(rg -c --no-filename '^\[env:ESP32' platformio.ini | awk '{s+=$1} END {print s+0}')" -eq 4
48
+
test "$(grep -Ec '^\[env:ESP32' platformio.ini)" -eq 4
0 commit comments