navi/scripts/lint

13 lines
387 B
Text
Raw Normal View History

2019-09-21 22:24:09 +00:00
#!/usr/bin/env bash
set -euo pipefail
export SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
# please refer to https://github.com/denisidoro/dotfiles/blob/master/scripts/code/beautify
2019-09-21 22:24:09 +00:00
cd "${SCRIPT_DIR}"
find . -iname '*.sh' | xargs -I% dot code beautify %
find scripts/* | xargs -I% dot code beautify %
dot code beautify "${SCRIPT_DIR}/test/run"
2019-09-21 22:24:09 +00:00
dot code beautify "${SCRIPT_DIR}/navi"