Sha256: acf4880d351f30b395ccbe51d45cc9b68e7ae63e5819b5581fb0e56e0e497ab9

Contents?: true

Size: 773 Bytes

Versions: 3

Compression:

Stored size: 773 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 twice (DuplicateMethodCall)
        Dirty#a calls puts(@s.title) twice (DuplicateMethodCall)
      spec/samples/two_smelly_files/dirty_two.rb -- 2 warnings:
        Dirty#a calls @s.title twice (DuplicateMethodCall)
        Dirty#a calls puts(@s.title) twice (DuplicateMethodCall)
      4 total warnings

      """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reek-1.5.1 features/command_line_interface/smell_selection.feature
reek-1.5.0 features/command_line_interface/smell_selection.feature
reek-1.4.0 features/command_line_interface/smell_selection.feature