navi/scripts/fix
2021-04-04 18:06:35 -03:00

26 lines
677 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
export NAVI_HOME="$(cd "$(dirname "$0")/.." && pwd)"
source "${NAVI_HOME}/scripts/install"
cd "$NAVI_HOME"
header "cargo clippy fix..."
cargo +nightly clippy --fix -Z unstable-options || true
header "cargo fix..."
cargo fix || true
header "cargo fmt..."
cargo fmt || true
header "clippy..."
cargo clippy || true
header "dot code beautify..."
find scripts -type f | xargs -I% dot code beautify % || true
dot code beautify "${NAVI_HOME}/alfred/alfred.bash" || true
dot code beautify "${NAVI_HOME}/alfred/alfred2.bash" || true
dot code beautify "${NAVI_HOME}/tests/core.bash" || true
dot code beautify "${NAVI_HOME}/tests/run" || true