ducminh-phan / reformat-gherkin

Formatter for Gherkin language
MIT License
24 stars 13 forks source link

Option to not combine all tags #43

Closed Frame42 closed 4 years ago

Frame42 commented 4 years ago

Is your feature request related to a problem? Please describe. We use a lot of tags to classify our scenarios. I feel like it is more readable if the tags are not all grouped in one line, but rather grouped by root tags.

Describe the solution you'd like I would love a switch/config setting to prevent merging all tags on one line and leaving them over multiple contiguous lines

Current behavior Input

  @testset.A @testset.B @testset.C @testset.Final
  @testtype.functional
  @jira.PEE-274
  Scenario: ADC Power
    ...

Output

  @testset.A @testset.B @testset.C @testset.Final @testtype.functional @jira.PEE-274
  Scenario: ADC Power
    ...
ducminh-phan commented 4 years ago

Hello @Frame42

I think you can use the multi-line tags feature by adding the flag --multi-line-tags for the CLI, or adding single_line_tags: False to the .reformat-gherkin.yaml config file.

The rationale for the default behaviour of single-line tags is in issue #22.