Sha256: 86a2bf108d04e2ec9baff16f88c352edd72019011f519328c3e450143489335f
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 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 - context: Smelly#x lines: - 5 message: has the variable name 'y' smell_type: UncommunicativeVariableName source: smelly.rb name: y """ 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 """
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reek-4.8.2 | features/reports/yaml.feature |