Sha256: c21e3b04f1096d83bb00e20473beee9070e1eae5d44917ccb378060bdfbc9026

Contents?: true

Size: 394 Bytes

Versions: 14

Compression:

Stored size: 394 Bytes

Contents

#!/bin/bash
# Usage: script/test_style.sh
#
# Check code style wit rubocop.

# set flag for shell execution.
# -e  Exit immediately if a command exits with a non-zero status.
set -e

echo "Rubocop $(bundle exec rubocop --version)"
bundle exec rubocop -S -D -E "$@"

success=$?
if ((success != 0)); then
   echo -e "\nTry running \`script/fmt -a\` to automatically fix errors"
fi

exit $success

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
html-pipeline-negarmoji-0.1.6 script/test_style.sh
negarmoji-0.1.10 script/test_style.sh
html-pipeline-negarmoji-0.1.5 script/test_style.sh
negarmoji-0.1.9 script/test_style.sh
html-pipeline-negarmoji-0.1.4 script/test_style.sh
negarmoji-0.1.8 script/test_style.sh
html-pipeline-negarmoji-0.1.3 script/test_style.sh
negarmoji-0.1.6 script/test_style.sh
html-pipeline-negarmoji-0.1.2 script/test_style.sh
negarmoji-0.1.5 script/test_style.sh
html-pipeline-negarmoji-0.1.1 script/test_style.sh
negarmoji-0.1.4 script/test_style.sh
html-pipeline-negarmoji-0.1.0 script/test_style.sh
negarmoji-0.1.3 script/test_style.sh