Sha256: 1ecdf9f7f5b5a5ba985841e48d6fb5e2585fa2ea24dbc1a5e1c12761861f6fff

Contents?: true

Size: 549 Bytes

Versions: 12

Compression:

Stored size: 549 Bytes

Contents

#!/bin/bash
echo -e "\033[0;36mRuby Appraiser: running\033[0m"
bundle exec ruby-appraiser --mode=staged reek rubocop
result_code=$?
if [ $result_code -gt "0" ]; then
  echo -en "\033[0;31m" # RED
  echo "[✘] Ruby Appraiser found newly-created defects and "
  echo "    has blocked your commit."
  echo "    Fix the defects and commit again."
  echo "    To bypass, commit again with --no-verify."
  echo -en "\033[0m" # RESET
  exit $result_code
else
  echo -en "\033[0;32m" # GREEN
  echo "[✔] Ruby Appraiser ok"
  echo -en "\033[0m" #RESET
fi

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cliver-0.3.2 .githooks/pre-commit/ruby-appraiser
cliver-0.3.1 .githooks/pre-commit/ruby-appraiser
cliver-0.2.2 .githooks/pre-commit/ruby-appraiser
cliver-0.2.1 .githooks/pre-commit/ruby-appraiser
cliver-0.2.0 .githooks/pre-commit/ruby-appraiser
cliver-0.1.5 .githooks/pre-commit/ruby-appraiser
cliver-0.1.4 .githooks/pre-commit/ruby-appraiser
cliver-0.1.3 .githooks/pre-commit/ruby-appraiser
cliver-0.1.2 .githooks/pre-commit/ruby-appraiser
cliver-0.1.1 .githooks/pre-commit/ruby-appraiser
cliver-0.1.0 .githooks/pre-commit/ruby-appraiser
cliver-0.0.1 .githooks/pre-commit/ruby-appraiser