Sha256: 678b6af32079ffafe7b315049483fd6285bf6a8ced86822d2be056640a97378d
Contents?: true
Size: 491 Bytes
Versions: 14
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true module Chutney # service class to lint for too many tags class TooManyTags < Linter def lint scenarios do |feature, scenario| tags = tags_for(feature) + tags_for(scenario) next unless tags.length > maxcount add_issue( I18n.t('linters.too_many_tags', count: tags.length, max: maxcount), feature ) end end def maxcount configuration['MaxCount']&.to_i || 3 end end end
Version data entries
14 entries across 14 versions & 1 rubygems