Sha256: a0dd0681cdf99f0452a0e067836a3dfc9e6eaf8ec650eeb622fba42d34d054d3

Contents?: true

Size: 394 Bytes

Versions: 6

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_issue(references, "Used #{scenario['steps'].length} Steps")
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gherkin_lint-0.1.2 lib/gherkin_lint/linter/too_many_steps.rb
gherkin_lint-0.1.1 lib/gherkin_lint/linter/too_many_steps.rb
gherkin_lint-0.1.0 lib/gherkin_lint/linter/too_many_steps.rb
gherkin_lint-0.0.14 lib/gherkin_lint/linter/too_many_steps.rb
gherkin_lint-0.0.13 lib/gherkin_lint/linter/too_many_steps.rb
gherkin_lint-0.0.12 lib/gherkin_lint/linter/too_many_steps.rb