Sha256: 14f61b928a4f6b45ee49fc2c854e80cc02a1ba18d03e4e50a3e9869d362c3c4d
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
Feature: Reek reads from $stdin when no files are given In order to use reek with pipelines As a developer I want to pipe source code on stdin Scenario: return zero status with no smells When I pass "def simple() @fred = 3 end" to reek Then it succeeds And it reports nothing Scenario: outputs nothing on empty stdin When I pass "" to reek Then it succeeds And it reports nothing Scenario: outputs header only on empty stdin in verbose mode When I pass "" to reek -V Then it succeeds And it reports: """ STDIN -- 0 warnings """ Scenario: return non-zero status when there are smells When I pass "class Turn; def y() @x = 3; end end" to reek Then the exit status indicates smells And it reports: """ STDIN -- 3 warnings: [1]:IrresponsibleModule: Turn has no descriptive comment [1]:UncommunicativeMethodName: Turn#y has the name 'y' [1]:UncommunicativeVariableName: Turn has the variable name '@x' """ Scenario: syntax error causes the source to be ignored When I pass "= invalid syntax =" to reek Then the exit status indicates smells And it reports: """ STDIN -- 2 warnings: [2]:Syntax: This file has unexpected token $end [1]:Syntax: This file has unexpected token tEQL """
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reek-4.8.2 | features/command_line_interface/stdin.feature |