diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-18 11:29:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-18 11:29:04 -0400 |
commit | ea6e17ca051a42144aad7eca7cd2298060835e67 (patch) | |
tree | 98400935184c4deb5a0285b81bdd7539f1476e36 | |
parent | 3640c63498399f85d44358b0d3cfd8a6d62325f4 (diff) | |
parent | 5f3a4e14e361c073797d89d5475ef34d7737bd23 (diff) | |
download | tor-ea6e17ca051a42144aad7eca7cd2298060835e67.tar.gz tor-ea6e17ca051a42144aad7eca7cd2298060835e67.zip |
Merge remote-tracking branch 'isis-github/bug22156'
-rw-r--r-- | Makefile.am | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 58ff9fb3e8..c533f577b3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -238,6 +238,20 @@ check-typos: echo "You can install the latest version of misspell here: https://github.com/client9/misspell#install"; \ fi +.PHONY: clippy +clippy: +if USE_RUST + @if test -x "`which cargo-clippy 2>&1;true`"; then \ + echo "Running cargo clippy ..."; \ + echo "Prepare yourself for the onslaught of suggestions ..."; \ + (cd "$(top_srcdir)/src/rust" && cargo clippy); \ + else \ + echo "Tor can use clippy to lint Rust code."; \ + echo "However, it seems that you don't have clippy installed."; \ + echo "You can install the latest version of clippy by following the directions here: https://github.com/rust-lang-nursery/rust-clippy"; \ + fi +endif + .PHONY: check-changes check-changes: if USEPYTHON |