File: fmt

package info (click to toggle)
ruby-jekyll-feed 0.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 308 kB
  • sloc: ruby: 811; xml: 100; sh: 18; makefile: 9
file content (10 lines) | stat: -rwxr-xr-x 224 bytes parent folder | download
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