Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am soszilla on github.
  • I am ejovrh2 (https://keybase.io/ejovrh2) on keybase.
  • I have a public key ASAk2QbgOm7uj9fM1vu7hBjRYyw0iHpJJ32pKazx_cdQ4Qo

To claim this, I am signing this object:

@soszilla
soszilla / pre-commit
Created June 21, 2019 13:51
stupidity check
#!/bin/sh
FILES_PATTERN='\.(js|py)(\..+)?$'
FORBIDDEN='TODO|console.log|print'
git diff --cached --name-only | \
grep -E $FILES_PATTERN | \
GREP_COLOR='4;5;37;41' xargs egrep --color --with-filename -n $FORBIDDEN && echo "Found $FORBIDDEN references, commit canceled." && exit 1
echo "pre-commit scan succeeded"
exit 0

Keybase proof

I hereby claim:

  • I am soszilla on github.
  • I am ejovrh (https://keybase.io/ejovrh) on keybase.
  • I have a public key ASDINbRu_6xTMwxsuMlRuUJPlbvlrsOM-3Bge6KBJFpm2wo

To claim this, I am signing this object: