Sha256: cf6d3636981e4686da5f5a80bd55e765be677460c18f0234e1a10a16b302a6ea
Contents?: true
Size: 1.75 KB
Versions: 4
Compression:
Stored size: 1.75 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 When I run reek --format yaml spec/samples/three_clean_files Then it succeeds And it reports this yaml: """ --- [] """ Scenario: Indicate smells and print them as yaml when using files When I run reek --format yaml spec/samples/standard_smelly/minimal_dirty.rb Then the exit status indicates smells And it reports this yaml: """ --- - smell_category: IrresponsibleModule smell_type: IrresponsibleModule source: spec/samples/standard_smelly/minimal_dirty.rb context: C lines: - 1 message: has no descriptive comment name: C - smell_category: UncommunicativeName smell_type: UncommunicativeModuleName source: spec/samples/standard_smelly/minimal_dirty.rb context: C lines: - 1 message: has the name 'C' name: C - smell_category: UncommunicativeName smell_type: UncommunicativeMethodName source: spec/samples/standard_smelly/minimal_dirty.rb context: C#m lines: - 2 message: has the name 'm' name: m """ 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_category: IrresponsibleModule smell_type: IrresponsibleModule source: "$stdin" context: Turn lines: - 1 message: has no descriptive comment name: Turn """
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
reek-2.0.4 | features/reports/yaml.feature |
reek-2.0.3 | features/reports/yaml.feature |
reek-2.0.2 | features/reports/yaml.feature |
reek-2.0.1 | features/reports/yaml.feature |