class Chutney::BackgroundDoesMoreThanSetup
service class to lint for background that does more than setup
Public Instance Methods
lint()
click to toggle source
# File lib/chutney/linter/background_does_more_than_setup.rb, line 6 def lint background do |feature, background| invalid_steps = background&.steps&.select do |step| when_word?(step.keyword) || then_word?(step.keyword) end next if invalid_steps.nil? || invalid_steps.empty? add_issue(I18n.t('linters.background_does_more_than_setup'), feature, background, invalid_steps.first) end end