chrono/ci/lint.sh
Rob Young 6b600e83e8
Allow manual-non-exhaustive (#458)
It is needed as the non_exhaustive attribute is not available on 1.13.0.

This should fix the broken linting.
2020-07-24 12:21:12 -04:00

17 lines
445 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# shellcheck source=ci/_shlib.sh
source "${BASH_SOURCE[0]%/*}/_shlib.sh"
main() {
# rustflags are present because of: https://github.com/rust-lang/rust-clippy/issues/5749
runt env RUSTFLAGS="-Dwarnings" cargo clippy --color=always -- -D warnings -A clippy::manual-non-exhaustive
runt cargo fmt -- --check --color=always
runt make readme
runv git diff --exit-code -- README.md
}
main