File: fmt

package info (click to toggle)
ruby-jekyll-github-metadata 2.16.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 740 kB
  • sloc: ruby: 2,394; javascript: 107; sh: 41; makefile: 6
file content (10 lines) | stat: -rwxr-xr-x 227 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
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