Sha256: d9f840557b89b2525a19c6e9b24ecdb702b0a186dd770fe24dc4e5f9459be514

Contents?: true

Size: 1.64 KB

Versions: 22

Compression:

Stored size: 1.64 KB

Contents

Feature: Report smells using simple YAML layout
  In order to parse Reek's output simply and consistently, simply
  output a list of smells in Yaml.

  Scenario: output is empty when there are no smells
    Given a directory called 'clean' containing two clean files
    When I run reek --format yaml clean
    Then it succeeds
    And it reports this yaml:
    """
    --- []
    """

  Scenario: Indicate smells and print them as yaml when using files
    Given the smelly file 'smelly.rb'
    When I run reek --format yaml smelly.rb
    Then the exit status indicates smells
    And it reports this yaml:
      """
      ---
      - context: Smelly#x
        lines:
        - 4
        message: has the name 'x'
        smell_type: UncommunicativeMethodName
        source: smelly.rb
        name: x
        wiki_link: https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Method-Name.md
      - context: Smelly#x
        lines:
        - 5
        message: has the variable name 'y'
        smell_type: UncommunicativeVariableName
        source: smelly.rb
        name: y
        wiki_link: https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Variable-Name.md
      """

  Scenario: Indicate smells and print them as yaml when using STDIN
    When I pass "class Turn; end" to reek --format yaml
    Then the exit status indicates smells
    And it reports this yaml:
      """
      ---
      - smell_type: IrresponsibleModule
        source: "STDIN"
        context: Turn
        lines:
        - 1
        message: has no descriptive comment
        wiki_link: https://github.com/troessner/reek/blob/master/docs/Irresponsible-Module.md
      """

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
reek-4.8.1 features/reports/yaml.feature
reek-4.8.0 features/reports/yaml.feature
reek-4.7.3 features/reports/yaml.feature
reek-4.7.2 features/reports/yaml.feature
reek-4.7.1 features/reports/yaml.feature
reek-4.7.0 features/reports/yaml.feature
reek-4.6.2 features/reports/yaml.feature
reek-4.6.1 features/reports/yaml.feature
reek-4.6.0 features/reports/yaml.feature
reek-4.5.6 features/reports/yaml.feature
reek-4.5.5 features/reports/yaml.feature
reek-4.5.4 features/reports/yaml.feature
reek-4.5.3 features/reports/yaml.feature
reek-4.5.2 features/reports/yaml.feature
reek-4.5.1 features/reports/yaml.feature
reek-4.5.0 features/reports/yaml.feature
reek-4.4.2 features/reports/yaml.feature
reek-4.4.1 features/reports/yaml.feature
reek-4.4.0 features/reports/yaml.feature
reek-4.3.0 features/reports/yaml.feature