You could install the ScalaFmt to your IntelliJ ( File – Preferences – Plugins , search from repositories ). Than Command + Shift + L will automatically re-format …
You could also :
cat << "EOF" >>
#!/usr/bin/env bash
# remove ^^ this line if you already have a content in the pre-hook
set +x
echo 'checking for own todo left-overs ... '$(grep -ri 'todo:yourLDAPusername' . | grep -v 'pre-commit' | wc -l) ' found. '
grep -rnHi 'todo:yourLDAPusername' . | grep -v 'pre-commit'
sleep 2
set -e
echo "running scalafmt tasks ..."
sbt 'scalafmt::test' 'test:scalafmt::test' 'sbt:scalafmt::test'
echo "building sbt docs ..."
sbt doc
exit 0
EOF
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!