<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -32,6 +32,7 @@ Feature: Reek can be controlled using command-line options
 
       Options:
           -a, --[no-]show-all              Show all smells, including those masked by config settings
+          -q, --quiet                      Suppress headings for smell-free source files
           -h, --help                       Show this message
           -f, --format FORMAT              Specify the format of smell warnings
           -c, --context-first              Sort by context; sets the format string to &quot;%m%c %w (%s)&quot;</diff>
      <filename>features/options.feature</filename>
    </modified>
    <modified>
      <diff>@@ -37,4 +37,17 @@ Feature: Correctly formatted reports
 
       &quot;&quot;&quot;
 
+  Scenario Outline: --quiet turns off headers for fragrant files
+    When I run reek --quiet spec/samples/three_clean_files/*.rb
+    Then it succeeds
+    And it reports:
+      &quot;&quot;&quot;
+
+
+      &quot;&quot;&quot;
+
+    Examples:
+      | option  |
+      | -q      |
+      | --quiet |
 </diff>
      <filename>features/reports.feature</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,8 @@ module Reek
     def self.default_options
       {
         :format =&gt; CTX_SORT,
-        :show_all =&gt; false
+        :show_all =&gt; false,
+        :quiet =&gt; false
       }
     end
     
@@ -69,6 +70,9 @@ EOB
       opts.on(&quot;-a&quot;, &quot;--[no-]show-all&quot;, &quot;Show all smells, including those masked by config settings&quot;) do |opt|
         config[:show_all] = opt
       end
+      opts.on(&quot;-q&quot;, &quot;--quiet&quot;, &quot;Suppress headings for smell-free source files&quot;) do
+        config[:quiet] = true
+      end
     end
 
     def self.set_help_option(opts)</diff>
      <filename>lib/reek/options.rb</filename>
    </modified>
    <modified>
      <diff>@@ -53,6 +53,7 @@ module Reek
     # Creates a formatted report of all the +Smells::SmellWarning+ objects recorded in
     # this report, with a heading.
     def full_report(desc)
+      return if @warnings.empty? and Options[:quiet]
       result = header(desc, @warnings.length)
       result += &quot;:\n#{to_s}&quot; if should_report
       result += &quot;\n&quot;</diff>
      <filename>lib/reek/report.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f4dac2b22709fd670335b578324a6d1b32c2640f</id>
    </parent>
  </parents>
  <author>
    <name>Kevin Rutherford</name>
    <email>kevin@rutherford-software.com</email>
  </author>
  <url>http://github.com/kevinrutherford/reek/commit/cf7c5f778f57a0de4037a161af8f3966c5ca99ea</url>
  <id>cf7c5f778f57a0de4037a161af8f3966c5ca99ea</id>
  <committed-date>2009-07-06T13:37:13-07:00</committed-date>
  <authored-date>2009-07-06T13:37:13-07:00</authored-date>
  <message>Added --quiet to switch off headers for fragrant files</message>
  <tree>43d5a09942133fe362919adc4626824957aea363</tree>
  <committer>
    <name>Kevin Rutherford</name>
    <email>kevin@rutherford-software.com</email>
  </committer>
</commit>
