Add linting alias
This commit is contained in:
parent
5dec9c5b3d
commit
59be754c18
2 changed files with 11 additions and 0 deletions
|
@ -9,6 +9,7 @@ alias awsp="aws-profile"
|
|||
alias b="bundle"
|
||||
alias be="bundle exec"
|
||||
alias bea="run-rails"
|
||||
alias bel="bundle exec rubocop"
|
||||
alias ber="bundle exec rake"
|
||||
alias bet="test-rails"
|
||||
alias c="clear"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# vim: set filetype=bash :
|
||||
|
||||
function advanced-git-checkout {
|
||||
if [ $# -eq 0 ]; then
|
||||
git branch \
|
||||
|
@ -88,6 +90,14 @@ function install-ruby {
|
|||
fi
|
||||
}
|
||||
|
||||
function lint-ruby {
|
||||
if [ -f "aet-rubocop.yml" ]; then
|
||||
bundle exec rubocop --config aet-rubocop.yml $@
|
||||
else
|
||||
bundle exec rubocop $@
|
||||
fi
|
||||
}
|
||||
|
||||
function password-generator {
|
||||
if [ -x "$(command -v openssl)" ]; then
|
||||
password=$(
|
||||
|
|
Loading…
Reference in a new issue