Hacker GitHub

← All repos

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

Mentions per year 20 mentions · busiest year 2016 (14)
20082026
  1. …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
  2. …, 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
  3. …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…
  4. …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
  5. There's actually some interesting discussion about making Clippy suggest ? instead of try: https://github.com/Manishearth/rust-clippy/issues/1361
  6. …when new syntaxes introduces new ways to do stuff, so the old one is deprecated _de facto_. [1] https://github.com/Manishearth/rust-clippy
  7. 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…
  8. 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.
  9. …amazing – especially because of the focus on great explanations. (Should copy more lints from https://github.com/Manishearth/rust-clippy though! ;))
  10. 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
  11. https://github.com/Manishearth/rust-clippy
    comment by steveklabnik · 2016-08-10 · in Shape of errors to come
  12. …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
  13. …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
  14. …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…
  15. …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
  16. 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
  17. …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 )
  18. …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...
  19. A deref coercion can happen there https://github.com/Manishearth/rust-clippy/issues/116
  20. …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.