File: fmt

package info (click to toggle)
ruby-jekyll-gist 1.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 184 kB
  • sloc: ruby: 298; sh: 14; makefile: 4
file content (10 lines) | stat: -rwxr-xr-x 224 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
set -e

echo "Rubocop $(bundle exec rubocop --version)"
bundle exec rubocop -D -E $@
success=$?
if ((success != 0)); then
   echo -e "\nTry running \`script/fmt -a\` to automatically fix errors"
fi
exit $success