barker/lint.sh

17 lines
434 B
Bash
Raw Normal View History

2020-12-19 05:12:20 +00:00
#!/usr/bin/env bash
set -eEu -o pipefail
shopt -s extdebug
IFS=$'\n\t'
2020-12-19 05:12:20 +00:00
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit ; pwd -P )
cd "$parent_path/bookie" || exit
npx prettier --write src/app
2020-12-19 05:12:20 +00:00
npx ng lint --fix
2020-12-19 05:12:20 +00:00
cd "$parent_path/barker" || exit
ruff format .
ruff check . # Lint all files in the current directory (and any subdirectories)
bandit --recursive brewman
bandit --recursive .
safety check