Sha256: b1382d6dd92faa0d97ebea975f205a279f4935d53f71d4266fc614c6ba2b26e0

Contents?: true

Size: 1.91 KB

Versions: 22

Compression:

Stored size: 1.91 KB

Contents

Feature: Reports total number of code smells
  In order to monitor the total number of smells
  Reek outputs the total number of smells among all files inspected.

  Scenario: Does not output total number of smells when inspecting single file
    Given the smelly file 'smelly.rb'
    When I run reek smelly.rb
    Then the exit status indicates smells
    And it reports:
      """
      smelly.rb -- 2 warnings:
        [4]:UncommunicativeMethodName: Smelly#x has the name 'x' [https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Method-Name.md]
        [5]:UncommunicativeVariableName: Smelly#x has the variable name 'y' [https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Variable-Name.md]
      """

  Scenario: Output total number of smells when inspecting multiple files
    Given a directory called 'smelly' containing two smelly files
    When I run reek smelly
    Then the exit status indicates smells
    And it reports:
      """
      smelly/dirty_one.rb -- 2 warnings:
        [4]:UncommunicativeMethodName: Smelly#x has the name 'x' [https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Method-Name.md]
        [5]:UncommunicativeVariableName: Smelly#x has the variable name 'y' [https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Variable-Name.md]
      smelly/dirty_two.rb -- 2 warnings:
        [4]:UncommunicativeMethodName: Smelly#x has the name 'x' [https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Method-Name.md]
        [5]:UncommunicativeVariableName: Smelly#x has the variable name 'y' [https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Variable-Name.md]
      4 total warnings
      """

  Scenario: Output total number of smells even if total equals 0
    Given a directory called 'clean' containing two clean files
    When I run reek clean
    Then it succeeds
    And it reports:
      """
      0 total warnings
      """

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
reek-4.8.1 features/command_line_interface/smells_count.feature
reek-4.8.0 features/command_line_interface/smells_count.feature
reek-4.7.3 features/command_line_interface/smells_count.feature
reek-4.7.2 features/command_line_interface/smells_count.feature
reek-4.7.1 features/command_line_interface/smells_count.feature
reek-4.7.0 features/command_line_interface/smells_count.feature
reek-4.6.2 features/command_line_interface/smells_count.feature
reek-4.6.1 features/command_line_interface/smells_count.feature
reek-4.6.0 features/command_line_interface/smells_count.feature
reek-4.5.6 features/command_line_interface/smells_count.feature
reek-4.5.5 features/command_line_interface/smells_count.feature
reek-4.5.4 features/command_line_interface/smells_count.feature
reek-4.5.3 features/command_line_interface/smells_count.feature
reek-4.5.2 features/command_line_interface/smells_count.feature
reek-4.5.1 features/command_line_interface/smells_count.feature
reek-4.5.0 features/command_line_interface/smells_count.feature
reek-4.4.2 features/command_line_interface/smells_count.feature
reek-4.4.1 features/command_line_interface/smells_count.feature
reek-4.4.0 features/command_line_interface/smells_count.feature
reek-4.3.0 features/command_line_interface/smells_count.feature