mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 04:00:05 +00:00
f3774edeb1
* TODO script * Add todo to Travis * Remove blame from todo check * Print failing todo comments * Fail on failure * Fix todo checker * Don't install godeps * *actually* don't install godeps
11 lines
288 B
Bash
Executable File
11 lines
288 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Continuous integration script to check that TODOs are in the correct format
|
|
OUTPUT="$(grep -PrinH '(?<!context\.)todo(?!\(#{0,1}\d+\))' --include \*.go *)";
|
|
if [ "$OUTPUT" != "" ] ;
|
|
then
|
|
echo "Invalid TODOs found. Failing." >&2;
|
|
echo "$OUTPUT" >&2;
|
|
exit 1;
|
|
fi
|