@reports Feature: Correctly formatted reports In order to get the most out of reek As a developer I want to be able to parse reek's output simply and consistently Scenario Outline: two reports run together with indented smells When I run reek Then the exit status indicates smells And it reports: """ spec/samples/two_smelly_files/dirty_one.rb -- 6 warnings: Dirty has the variable name '@s' (UncommunicativeVariableName) Dirty#a calls @s.title twice (DuplicateMethodCall) Dirty#a calls puts(@s.title) twice (DuplicateMethodCall) Dirty#a contains iterators nested 2 deep (NestedIterators) Dirty#a has the name 'a' (UncommunicativeMethodName) Dirty#a has the variable name 'x' (UncommunicativeVariableName) spec/samples/two_smelly_files/dirty_two.rb -- 6 warnings: Dirty has the variable name '@s' (UncommunicativeVariableName) Dirty#a calls @s.title twice (DuplicateMethodCall) Dirty#a calls puts(@s.title) twice (DuplicateMethodCall) Dirty#a contains iterators nested 2 deep (NestedIterators) Dirty#a has the name 'a' (UncommunicativeMethodName) Dirty#a has the variable name 'x' (UncommunicativeVariableName) """ Examples: | args | | spec/samples/two_smelly_files/*.rb | | spec/samples/two_smelly_files | Scenario Outline: good files show headers consecutively When I run reek Then it succeeds And it reports: """ spec/samples/three_clean_files/clean_one.rb -- 0 warnings spec/samples/three_clean_files/clean_three.rb -- 0 warnings spec/samples/three_clean_files/clean_two.rb -- 0 warnings """ Examples: | args | | spec/samples/three_clean_files/*.rb | | spec/samples/three_clean_files | Scenario Outline: --quiet turns off headers for fragrant files When I run reek