I recently found out about Reek from watching Sandi Metz's talk from RailsConf 2016 (great intro to code smells btw).
Code smell detector for Ruby
Table of Contents
- Supported Ruby versions
- Fixing Smell Warnings
- Code smells
- Developing Reek / Contributing
- Output formats
- Working with Rails
- Brothers and sisters
- Additional resources
Reek is a tool that examines Ruby classes, modules and methods and reports any Code Smells it finds.
Install it via rubygems:
gem install reek
and run it like this:
reek [options] [dir_or_source_file]*
Imagine a source file
I love tools like these, because you can run them and have the computer tell you what code might be problematic. Also:
- works with Ruby 2.3, 2.4, 2.5
- little configuration required for Rails
- easy config in general
- has a thorough README
I haven't used it much yet, and it seems to be a fairly popular gem. Have you heard of it? What are your thoughts on it?