navi/scripts/fix
2020-03-11 11:30:25 -03:00

17 lines
No EOL
439 B
Bash
Executable file

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