This repository was archived by the owner on Oct 14, 2021. It is now read-only.
File tree 3 files changed +19
-8
lines changed
3 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,7 @@ case "$1" in
11
11
doc)
12
12
cargo doc --all
13
13
;;
14
- esac
14
+ clippy)
15
+ cargo clippy --all-targets --all-features -- -D warnings
16
+ ;;
17
+ esac
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- if [ " $1 " == " format" ]; then
4
- echo " Installing rustfmt..."
5
- rustup toolchain install nightly
6
- rustup component add --toolchain nightly rustfmt-preview
7
- which rustfmt || cargo install --force rustfmt-nightly
8
- cargo +nightly fmt -- --version
9
- fi
3
+ case " $1 " in
4
+ format)
5
+ echo " Installing rustfmt..."
6
+ rustup component add --toolchain nightly rustfmt-preview
7
+ which rustfmt || cargo install --force rustfmt-nightly
8
+ cargo +nightly fmt -- --version
9
+ ;;
10
+ clippy)
11
+ echo " Installing clippy..."
12
+ rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
13
+ ;;
14
+ esac
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ matrix:
11
11
- name : " Rust: format"
12
12
env : ACTION=format
13
13
rust : nightly
14
+ - name : " Rust: clippy"
15
+ env : ACTION=clippy
16
+ rust : nightly
14
17
- name : " Rust: doc"
15
18
env : ACTION=doc
16
19
rust : stable
You can’t perform that action at this time.
0 commit comments