Skip to content

Commit

Permalink
Lint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rokeras authored Jan 24, 2025
1 parent eb7fc1f commit d95f917
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

alias composer='docker run --rm -it -v "$(pwd):/app" composer/composer'

action=$1

case $action in
"check")
composer update
composer install
./vendor/bin/phpcs -s --ignore=node_modules,build/\* omnisend-for-surecart
;;
"fix")
composer update
composer install
./vendor/bin/phpcbf --ignore=node_modules,build/\* omnisend-for-surecart
;;
*)
echo "pass one of these argument: check,fix"
exit 1
;;
esac

0 comments on commit d95f917

Please sign in to comment.