Go to file
2015-04-20 16:18:35 +05:30
src rustup (rustc 1.0.0-nightly (00978a987 2015-04-18) (built 2015-04-19)) 2015-04-20 16:18:35 +05:30
tests Use compiletest 2015-04-14 00:20:44 +05:30
.gitignore Create .gitignore 2014-11-19 13:22:58 +05:30
.travis.yml travisify 2015-04-14 00:21:16 +05:30
Cargo.toml Use compiletest 2015-04-14 00:20:44 +05:30
README.md more readme 2014-12-28 20:12:48 +05:30

rust-clippy

A collection of lints that give helpful tips to newbies.

Lints included in this crate:

  • clippy_single_match: Warns when a match statement with a single nontrivial arm (i.e, where the other arm is _ => {}) is used, and recommends if let instead.
  • clippy_box_vec: Warns on usage of Box<Vec<T>>
  • clippy_dlist: Warns on usage of DList
  • clippy_str_to_string: Warns on usage of str::to_string()
  • clippy_toplevel_ref_arg: Warns when a function argument is declared ref (i.e. fn foo(ref x: u8), but not fn foo((ref x, ref y): (u8, u8))).

You can allow/warn/deny the whole set using the clippy lint group (#[allow(clippy)], etc)

More to come, please file an issue if you have ideas!

Licensed under MPL. If you're having issues with the license, let me know and I'll try to change it to something more permissive.