File: fmt

package info (click to toggle)
jekyll 4.4.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,488 kB
  • sloc: ruby: 16,736; javascript: 1,455; sh: 216; xml: 29; makefile: 9
file content (8 lines) | stat: -rwxr-xr-x 236 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/bin/bash
echo "RuboCop $(bundle exec rubocop --version)"
bundle exec rubocop -D --disable-pending-cops $@
success=$?
if ((success != 0)); then
   echo -e "\nTry running \`script/fmt -a\` to automatically fix errors"
fi
exit $success