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