class Chutney::ScenarioNamesMatch

service class to lint for tags used multiple times

Constants

MESSAGE

Public Instance Methods

lint() click to toggle source
# File lib/chutney/linter/scenario_names_match.rb, line 10
def lint
  scenarios do |feature, scenario|
    next unless (scenario.name =~ /#{configuration['Matcher']}/).nil?

    add_issue(
      I18n.t('linters.scenario_names_match',
             pattern: configuration['Matcher']), feature, scenario
    )
  end
end