Sha256: ce455ce7ef3736f81eba4ae53d55c43eb975910f89fcdac79621cd707cae1056

Contents?: true

Size: 781 Bytes

Versions: 8

Compression:

Stored size: 781 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

8 entries across 8 versions & 1 rubygems

Version Path
reek-2.0.0 features/command_line_interface/smell_selection.feature
reek-1.6.6 features/command_line_interface/smell_selection.feature
reek-1.6.5 features/command_line_interface/smell_selection.feature
reek-1.6.4 features/command_line_interface/smell_selection.feature
reek-1.6.3 features/command_line_interface/smell_selection.feature
reek-1.6.2 features/command_line_interface/smell_selection.feature
reek-1.6.1 features/command_line_interface/smell_selection.feature
reek-1.6.0 features/command_line_interface/smell_selection.feature