Sha256: 41525fcf33fa5104a553a4a3763a414c1b7846536220761e9c36d4954d11d2ab

Contents?: true

Size: 780 Bytes

Versions: 4

Compression:

Stored size: 780 Bytes

Contents

Feature: Smell selection
  In order to focus on particular code smells
  As a developer
  I want to be able to selectively activate smell detectors

  Scenario: --smell selects a smell to detect
    When I run reek --no-line-numbers --smell DuplicateMethodCall spec/samples/two_smelly_files
    Then the exit status indicates smells
    And it reports:
      """
      spec/samples/two_smelly_files/dirty_one.rb -- 2 warnings:
        Dirty#a calls @s.title 2 times (DuplicateMethodCall)
        Dirty#a calls puts(@s.title) 2 times (DuplicateMethodCall)
      spec/samples/two_smelly_files/dirty_two.rb -- 2 warnings:
        Dirty#a calls @s.title 2 times (DuplicateMethodCall)
        Dirty#a calls puts(@s.title) 2 times (DuplicateMethodCall)
      4 total warnings
      """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
reek-2.0.4 features/command_line_interface/smell_selection.feature
reek-2.0.3 features/command_line_interface/smell_selection.feature
reek-2.0.2 features/command_line_interface/smell_selection.feature
reek-2.0.1 features/command_line_interface/smell_selection.feature