class Chutney::TooManySteps

service class to lint for too many steps

Public Instance Methods

lint() click to toggle source
# File lib/chutney/linter/too_many_steps.rb, line 6
def lint
  filled_scenarios do |feature, scenario|
    next if scenario.steps.length <= maxcount

    add_issue(
      I18n.t('linters.too_many_steps', count: scenario.steps.length, max: maxcount),
      feature
    )
  end
end
maxcount() click to toggle source
# File lib/chutney/linter/too_many_steps.rb, line 17
def maxcount
  configuration['MaxCount']&.to_i || 10
end