Sha256: 98831bf12abed7d897655849c2073504690833a64f1108ff0d591ef96a8f530d
Contents?: true
Size: 394 Bytes
Versions: 2
Compression:
Stored size: 394 Bytes
Contents
require 'gherkin_lint/linter' module GherkinLint # service class to lint for too many steps class TooManySteps < Linter def lint filled_scenarios do |file, feature, scenario| next if scenario['steps'].length < 10 references = [reference(file, feature, scenario)] add_error(references, "Used #{scenario['steps'].length} Steps") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gherkin_lint-0.3.1 | lib/gherkin_lint/linter/too_many_steps.rb |
gherkin_lint-0.3.0 | lib/gherkin_lint/linter/too_many_steps.rb |