class Chutney::TooClumsy
service class to lint for too clumsy scenarios
Public Instance Methods
lint()
click to toggle source
# File lib/chutney/linter/too_clumsy.rb, line 8 def lint filled_scenarios do |feature, scenario| characters = scenario.steps.map { |step| step.text.length }.inject(0, :+) next if characters < 400 add_issue( I18n.t('linters.too_clumsy', length: characters), feature, scenario ) end end