#!/bin/bash

[ -n "$GIT_DIR" ] || export GIT_DIR="$(git rev-parse --show-toplevel 2>/dev/null)/.git"
. "$GIT_DIR"/hooks/hook_lib

rubocop
check_rc "Please fix RuboCop failures before pushing code upstream."
