Sha256: 065c4a342a91e49e6fba412fe207c08cb2836f188588d1153b0d629e9ff61de6
Contents?: true
Size: 407 Bytes
Versions: 2
Compression:
Stored size: 407 Bytes
Contents
require 'gherkin_lint/linter' module GherkinLint # service class to lint for missing feature names class MissingFeatureName < Linter def lint features do |file, feature| name = feature.key?('name') ? feature['name'].strip : '' next unless name.empty? references = [reference(file, feature)] add_error(references, 'No Feature Name') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gherkin_lint-0.3.1 | lib/gherkin_lint/linter/missing_feature_name.rb |
gherkin_lint-0.3.0 | lib/gherkin_lint/linter/missing_feature_name.rb |