Last Updated: February 25, 2016
·
1.434K
· bjh

find uncommented console.log calls

regex to find uncommented console.log calls
^\s+(console.*)$

I usually use this with Ack:
ack "^\s+(console.*)$"

note: for bonus points add this to a git hook