lib/chutney/linter/too_many_steps.rb in chutney-2.2.1 vs lib/chutney/linter/too_many_steps.rb in chutney-3.0.0.beta.1

- old
+ new

@@ -1,13 +1,15 @@ +# frozen_string_literal: true + module Chutney # service class to lint for too many steps class TooManySteps < Linter def lint filled_scenarios do |feature, scenario| - next if scenario[:steps].length <= maxcount + next if scenario.steps.length <= maxcount add_issue( - I18n.t('linters.too_many_steps', count: scenario[:steps].length, max: maxcount), + I18n.t('linters.too_many_steps', count: scenario.steps.length, max: maxcount), feature ) end end