#!/bin/sh
FORBIDDEN="goog.object goog.isArray goog.isFunction goog.isString goog.bind goog.array goog.dom goog.events goog.isDef goog.isDefAndNotNull goog.isNull"
for method in $FORBIDDEN;
do
  grep -Rn "$method" src/ && echo "Use standard ES5.1 instead of $method" && return 1;
  echo -n ''
done

#!/bin/sh

# Any call to the goog library except the followings are forbidden
echo "Checking use of goog library..."
if grep -Rn goog. src | grep -E -v 'goog.provide|goog.require|goog.module|goog.asserts'
then
  echo "Found forbidden uses."
  return 1
fi

Add a whitelist of allowed calls to the closure library
Add a whitelist of allowed calls to the closure library
