Sha256: 77cdd07c20c965e846c534a0d601d954ea9d71fa5eb61ea4714e5eaf3eecc638

Contents?: true

Size: 1.41 KB

Versions: 21

Compression:

Stored size: 1.41 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'
        [5]:UncommunicativeVariableName: Smelly#x has the variable name 'y'
      """

  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'
        [5]:UncommunicativeVariableName: Smelly#x has the variable name 'y'
      smelly/dirty_two.rb -- 2 warnings:
        [4]:UncommunicativeMethodName: Smelly#x has the name 'x'
        [5]:UncommunicativeVariableName: Smelly#x has the variable name 'y'
      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

21 entries across 19 versions & 2 rubygems

Version Path
reek-6.0.3 features/command_line_interface/smells_count.feature
reek-6.0.2 features/command_line_interface/smells_count.feature
reek-6.0.1 features/command_line_interface/smells_count.feature
reek-6.0.0 features/command_line_interface/smells_count.feature
reek-5.6.0 features/command_line_interface/smells_count.feature
reek-5.5.0 features/command_line_interface/smells_count.feature
reek-5.4.1 features/command_line_interface/smells_count.feature
reek-5.4.0 features/command_line_interface/smells_count.feature
reek-5.3.2 features/command_line_interface/smells_count.feature
reek-5.3.1 features/command_line_interface/smells_count.feature
reek-5.3.0 features/command_line_interface/smells_count.feature
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/features/command_line_interface/smells_count.feature
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/features/command_line_interface/smells_count.feature
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/features/command_line_interface/smells_count.feature
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/features/command_line_interface/smells_count.feature
reek-5.2.0 features/command_line_interface/smells_count.feature
reek-5.1.0 features/command_line_interface/smells_count.feature
reek-5.0.2 features/command_line_interface/smells_count.feature
reek-5.0.1 features/command_line_interface/smells_count.feature
reek-5.0.0 features/command_line_interface/smells_count.feature