navi/scripts/fix

17 lines
439 B
Text
Raw Normal View History

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