Closed php-coder closed 7 years ago
That feature already exists. Use rflint --error all ...
Unfortunately I didn't know this. Where is it documented?
It's documented in the output from rflint --help
It turned out that --error all
should be the first option otherwise it could lead to strange result where --ignore
won't work:
$ rflint --ignore TooFewKeywordSteps --configure LineTooLong:130 --error=all src/test/robotframework
+ src/test/robotframework/series/access.robot
E: 27, 0: Too few steps (1) in keyword (TooFewKeywordSteps)
+ src/test/robotframework/series/creation/logic.robot
E: 35, 0: Too many steps (35) in test case (TooManyTestSteps)
E: 69, 0: Too few steps (1) in keyword (TooFewKeywordSteps)
E: 86, 0: Too few steps (1) in keyword (TooFewKeywordSteps)
$ rflint --error=all --ignore TooFewKeywordSteps --configure LineTooLong:130 src/test/robotframework
+ src/test/robotframework/series/creation/logic.robot
E: 35, 0: Too many steps (35) in test case (TooManyTestSteps)
Could you provide a single option for turning all warnings into errors and exiting the program with non-zero status?