File: fmt

package info (click to toggle)
ruby-jekyll-sass-converter 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 312 kB
  • sloc: ruby: 818; sh: 22; makefile: 6
file content (8 lines) | stat: -rwxr-xr-x 230 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/bin/bash
echo "RuboCop $(bundle exec rubocop --version)"
bundle exec rubocop -D $@
success=$?
if ((success != 0)); then
   echo -e "\nTry running \`script/fmt --safe-auto-correct\` to automatically fix errors"
fi
exit $success