37 ms·
Brian McKenna's Wart Remover[1] is an excellent tool for capturing silent (but deadly) errors at compile time. Can also turn on various scalac -X flags to, for
by virtualwhys 12y ago
Brian McKenna's Wart Remover[1] is an excellent tool for capturing silent (but deadly) errors at compile time.
Can also turn on various scalac -X flags to, for example, turn warnings into compile time errors. Invoke scala REPL with -X to see available flags.
[1] https://github.com/typelevel/wartremover https://github.com/typelevel/wartremover
- danielbarla 12y agoThanks, very useful. It's nice to see that both Wart Remover and OP's post had reasonable explanations and examples to justify each rule. This makes the rule all that much better as a learning experience (contrast with, e.g. "I have never seen a piece of code that was not improved by refactoring it to remove the continue statement" from JavaScript: The Good Parts, which leaves me baffled and no wiser).