Sha256: 3023c9d97bf047fb7467da9a9dc4a92458776867becc59fa1c507949416d75d3
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
require 'gherkin_lint/linter' module GherkinLint # service class to lint for avoiding periods class AvoidPeriod < Linter def lint scenarios do |file, feature, scenario| next unless scenario.key? 'steps' scenario['steps'].each do |step| references = [reference(file, feature, scenario, step)] add_error(references) if step['name'].strip.end_with? '.' end 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/avoid_period.rb |
gherkin_lint-0.3.0 | lib/gherkin_lint/linter/avoid_period.rb |