Manishearth/rust-clippy
View on GitHub ↗ ★ 113 Rust
A bunch of lints to catch common mistakes and improve your Rust code
20 mentions on Hacker News by 12 people: 0 stories, 20 comments · first 2015-03-18 · latest 2017-05-10
20082026
-
…better diagnostics. Or just removing papercuts. One such thing I've recently been thinking about is https://github.com/Manishearth/rust-clippy/issues/1737 , which would be cool if it got big.
comment by Manishearth · 2017-05-10 · in Making a Game in Rust -
…, but the wrong_self_convention check helped me make sense of the as/to/into conventions. https://github.com/Manishearth/rust-clippy
comment by tveita · 2017-05-05 · in The Rust Libs Blitz -
…reasons, and half of them are things that could be caught with a linter / static analysis tool like https://github.com/Manishearth/rust-clippy . Do you think building something that implements as many of the MISRA-C checks as possible is…
comment by geofft · 2017-04-01 · in Tor in a safer language: Network team update from Amsterdam -
…Furthermore, Clippy can be used to automatically forbid usage of unwrap for your entire team ( https://github.com/Manishearth/rust-clippy/wiki#option_unwra... ). Furthermore, even when you hit a panic, it tells you which line of code in…
comment by kibwen · 2017-01-12 · in Announcing Tokio 0.1 -
There's actually some interesting discussion about making Clippy suggest ? instead of try: https://github.com/Manishearth/rust-clippy/issues/1361
comment by Manishearth · 2016-12-17 · in Stroustrup's Rule and Layering Over Time in Rust -
…when new syntaxes introduces new ways to do stuff, so the old one is deprecated _de facto_. [1] https://github.com/Manishearth/rust-clippy
comment by stymaar · 2016-12-17 · in Stroustrup's Rule and Layering Over Time in Rust -
This is basically what https://github.com/Manishearth/rust-clippy/wiki#option_unwra... does It doesn't work transitively (so if a crate you depend on unwraps you can't protect yourself), but https://github.com/llogiq/metacollect plans to…
comment by Manishearth · 2016-11-18 · in Rust and the Future of Systems Programming [video] -
For those not familiar with Clippy: https://github.com/Manishearth/rust-clippy It's a very useful tool; the main thing about it that annoys me is that it only works with nightly.
comment by bumblebeard · 2016-11-16 · in Rust and the Future of Systems Programming [video] -
…amazing – especially because of the focus on great explanations. (Should copy more lints from https://github.com/Manishearth/rust-clippy though! ;))
comment by killercup · 2016-08-24 · in Credo: Static code analysis for Elixir with a focus on consistency and teaching -
The joke's on you: Clippy – A bunch of lints to catch common mistakes and improve your Rust code https://github.com/Manishearth/rust-clippy
comment by GolDDranks · 2016-08-10 · in Shape of errors to come -
https://github.com/Manishearth/rust-clippy
comment by steveklabnik · 2016-08-10 · in Shape of errors to come -
…more time than the review process and mentorship take. I also have a personal project, rust-clippy ( http://github.com/manishearth/rust-clippy/ ). It started out as my own thing, and I merged with another similar project and got a…
comment by Manishearth · 2016-07-16 · in Contributors do not save time -
…up having a hard compiler error when using an invalid regex literal. That said, the clippy tool ( https://github.com/Manishearth/rust-clippy ) can do compile-time verification of regex literals, but it depends on nightly Rust because it…
comment by dikaiosune · 2016-06-13 · in “Safe C++ Subset” Is Vapourware -
…for compiler warnings and errors which are quite good in Rust. That said, you can use clippy ( https://github.com/Manishearth/rust-clippy ) to get some pretty solid static code analysis as a compiler plug in. Also, I am very closely…
comment by dikaiosune · 2016-06-02 · in Sapper, a lightweight web framework written in Rust -
…is [a lint][1] which checks that your regular expressions are valid (at compile time), though. [1]: https://github.com/Manishearth/rust-clippy/wiki#invalid_rege...
comment by killercup · 2016-05-02 · in Go bindings to Rust's regex engine -
The general term lint refers to things that catch possible bugs. http://github.com/manishearth/rust-clippy/ contains tons of lints which are much more powerful than just tabs vs spaces. Many catch code style things, but some of them also…
comment by Manishearth · 2016-04-24 · in Something Secret This Way Comes -
…If we know what to look out for, we can simply write some clippy lints to replicate the checks. ( https://github.com/Manishearth/rust-clippy )
comment by llogiq · 2016-04-13 · in Windows Kernel-Mode Drivers Written in Rust -
…project[1]. You'll get a compile time warning if your function becomes too complex. [1]: https://github.com/Manishearth/rust-clippy/wiki#cyclomatic_c...
comment by Soft · 2016-02-12 · in A MOS6502 assembler implemented as a Rust macro -
A deref coercion can happen there https://github.com/Manishearth/rust-clippy/issues/116
comment by Manishearth · 2015-10-30 · in Java 8’s new Optional type doesn't solve anything -
…it and distribute it as a regular Rust library so that others can benefit from it as well. See https://github.com/Manishearth/rust-clippy for an example of such user-defined lint passes.
comment by kibwen · 2015-03-18 · in Would Rust have prevented Heartbleed? Another look