rust-clippy/README.md

18 lines
869 B
Markdown
Raw Normal View History

2014-11-19 07:50:46 +00:00
rust-clippy
===========
A collection of lints that give helpful tips to newbies.
2014-11-19 19:19:03 +00:00
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>>`
2014-11-20 08:14:22 +00:00
- `clippy_dlist`: Warns on usage of `DList`
2014-12-15 14:53:45 +00:00
- `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))`).
2014-11-19 19:19:03 +00:00
2014-12-10 06:51:55 +00:00
More to come, please [file an issue](https://github.com/Manishearth/rust-clippy/issues) if you have ideas!
Licensed under [MPL](https://www.mozilla.org/MPL/2.0/). If you're having issues with the license, let me know and I'll try to change it to something more permissive.