Sha256: fa99988229b685acee73a619c8c5d75d75a133742252c4f54f9601863c75fc93

Contents?: true

Size: 658 Bytes

Versions: 2

Compression:

Stored size: 658 Bytes

Contents

Feature: Exclude paths directives
  In order to avoid Reek wasting time on files that cannot be fixed
  As a user
  I want to be able to exclude specific paths from being checked

  Scenario: Exclude some paths
    Given a file named "bad_files_live_here/smelly.rb" with:
      """
      # A smelly example class
      class Smelly
        def alfa(bravo); end
      end
      """
    When I run `reek .`
    Then the exit status indicates smells
    Given a file named "config.reek" with:
      """
      ---
      exclude_paths:
        - bad_files_live_here
      """
    When I run `reek -c config.reek .`
    Then it succeeds
    And it reports nothing

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reek-4.5.6 features/configuration_files/exclude_paths_directives.feature
reek-4.5.5 features/configuration_files/exclude_paths_directives.feature