Sha256: e3d4f356a99f505361c84bcf7f647aeb88cc90a149b12f06ed4cac9c2a490aad

Contents?: true

Size: 1.87 KB

Versions: 17

Compression:

Stored size: 1.87 KB

Contents

Feature: Show configuration file
  With Reeks dynamic mechanism of finding a configuration file you might run into a situation where you are not
  100% sure what configuration file Reek is using. E.g. you have a project specific configuration file in your
  project root and also another Reek configuration in your HOME directory that you use for all your other projects
  and for whatever reasons Reek seems to be using another configuration file than the one you assumed it would.
  In this case you can pass the flag `--show-configuration-path` to Reek which will cause Reek to output the path
  to the configuration file it is using.

  Scenario: Default configuration file present
    Given the clean file "clean.rb"
    And an empty file named ".reek.yml"
    When I run reek --show-configuration-path clean.rb
    Then it reports:
      """
      Using '.reek.yml' as configuration file.
      """

  Scenario: Non-default configuration file passed via CLI
    Given the clean file "clean.rb"
    And an empty file named "config.reek"
    When I run reek --show-configuration-path -c config.reek clean.rb
    Then it reports:
      """
      Using 'config.reek' as configuration file.
      """

  Scenario: Display the right configuration file even when there are multiple files present
    Given the clean file "clean.rb"
    And an empty file named ".reek.yml"
    And an empty file named "config.reek"
    When I run reek --show-configuration-path -c config.reek clean.rb
    Then it reports:
      """
      Using 'config.reek' as configuration file.
      """

  Scenario: Use configuration file we find when traversing up the directory tree
    Given the clean file "clean.rb"
    And with a configuration file that is further up in the directory tree
    When I run reek --show-configuration-path clean.rb
    Then it reports:
      """
      Using '../../.reek.yml' as configuration file.
      """

Version data entries

17 entries across 15 versions & 2 rubygems

Version Path
reek-6.0.3 features/configuration_files/show_configuration_file.feature
reek-6.0.2 features/configuration_files/show_configuration_file.feature
reek-6.0.1 features/configuration_files/show_configuration_file.feature
reek-6.0.0 features/configuration_files/show_configuration_file.feature
reek-5.6.0 features/configuration_files/show_configuration_file.feature
reek-5.5.0 features/configuration_files/show_configuration_file.feature
reek-5.4.1 features/configuration_files/show_configuration_file.feature
reek-5.4.0 features/configuration_files/show_configuration_file.feature
reek-5.3.2 features/configuration_files/show_configuration_file.feature
reek-5.3.1 features/configuration_files/show_configuration_file.feature
reek-5.3.0 features/configuration_files/show_configuration_file.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/configuration_files/show_configuration_file.feature
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/features/configuration_files/show_configuration_file.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/configuration_files/show_configuration_file.feature
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/features/configuration_files/show_configuration_file.feature
reek-5.2.0 features/configuration_files/show_configuration_file.feature
reek-5.1.0 features/configuration_files/show_configuration_file.feature