Add linting alias

This commit is contained in:
Andrew Tomaka 2025-01-25 10:46:17 -05:00
parent 5dec9c5b3d
commit 59be754c18
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 11 additions and 0 deletions

View file

@ -9,6 +9,7 @@ alias awsp="aws-profile"
alias b="bundle" alias b="bundle"
alias be="bundle exec" alias be="bundle exec"
alias bea="run-rails" alias bea="run-rails"
alias bel="bundle exec rubocop"
alias ber="bundle exec rake" alias ber="bundle exec rake"
alias bet="test-rails" alias bet="test-rails"
alias c="clear" alias c="clear"

View file

@ -1,3 +1,5 @@
# vim: set filetype=bash :
function advanced-git-checkout { function advanced-git-checkout {
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
git branch \ git branch \
@ -88,6 +90,14 @@ function install-ruby {
fi 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 { function password-generator {
if [ -x "$(command -v openssl)" ]; then if [ -x "$(command -v openssl)" ]; then
password=$( password=$(