Store attribute name as string instead of calling to_s several times
Re-factor Report class and add specs
- handle output with or without any smells
- Use has_smells? instead of checking for number of smells repeatedly
- Use options instead of multiple params
- Capture output stream in a separate method in specs
- Add attr_reader for smells and initialise a class attribute for smells
Break down report generation into strategies and report classes
- 3 different strategies
- text, yaml html report formats