r-cochran / cuke_sniffer

A ruby library used to root out smells in your cukes.
MIT License
44 stars 28 forks source link

Incorrect identification of commented tags #95

Closed enkessler closed 7 years ago

enkessler commented 7 years ago

The following feature file is triggering the 'Scenario has a commented out tag' rule on Scenario Bar, even though there are no commented tags:

Feature: FooBar

  Scenario: Foo
    * a step

  # Just a comment
  @some_tag
  Scenario: Bar

The same feature with no preceding scenarios does not trigger the issue:

Feature: FooBar

  # Just a comment
  @some_tag
  Scenario: Bar
enkessler commented 7 years ago

It looks like #85 might fix this.