Find a file
2014-12-26 04:51:14 +05:30
examples Add an example of the toplevel_ref_arg lint. 2014-12-24 17:48:03 -08:00
src Merge branch 'master' of github.com:Manishearth/rust-clippy 2014-12-26 04:51:14 +05:30
.gitignore Create .gitignore 2014-11-19 13:22:58 +05:30
Cargo.toml dylib 2014-12-25 04:43:56 +05:30
README.md Update README.md for clippy_toplevel_ref_arg. 2014-12-24 18:37:50 -08:00

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))).

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.