A small library to check and fix annoying gherkin code style

Package info

github.com/PedroTroller/kawaii

Homepage

pkg:composer/pedrotroller/kawaii

Statistics

Installs: 12โ€‰587

Dependents: 0

Suggesters: 0

Stars: 0

1.2.0 2025-09-24 14:25 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 44f1e5a2ac11bafa5ab813a508ec6a3e847489c2

gherkinformattingCode stylecode standard

This package is auto-updated.

Last update: 2026-06-24 16:16:28 UTC


README

This package is a fork of the awesome malukenho/kawaii-gerkin package made by Jefersson NATHAN (@malukenho).

Kawaii is a small tool to fix and verify gherkin code style.

Installing

$ composer require --dev pedrotroller/kawaii

Analyzing code

To analyze code style, simple run:

$ vendor/bin/kawaii check [--align [right|left]] <directory>

Fixing code

To fix code style, simple run:

$ vendor/bin/kawaii fix [--align [right|left]] <directory>

Example

Before

 @users

 @another-feature
 @kawaii
 Feature: User registration
 In order to order products
 As a visitor
 I need to be able to create an account in the store

 Background: Nice Background
 Given store has default configuration
 And there are following users:
 | email | password |
 | bar@bar.com | foo1sasdasdasdadsasd |
 And the following customers exist:
 | email |
 | customer@email.com |
 And the following zones are defined:
 | name | type | members |
 | Poland | country | Poland |
 And the following orders exist:
 | customer | address |
 | customer@email.com | Jan Kowalski, Wawel 5 , 31-001, Krakรณw, Poland |

After

@users @another-feature @kawaii
Feature: User registration
 In order to order products
 As a visitor
 I need to be able to create an account in the store

 Background: Nice Background
 Given store has default configuration
 And there are following users:
 | email | password |
 | bar@bar.com | foo1sasdasdasdadsasd |
 And the following customers exist:
 | email |
 | customer@email.com |
 And the following zones are defined:
 | name | type | members |
 | Poland | country | Poland |
 And the following orders exist:
 | customer | address |
 | customer@email.com | Jan Kowalski, Wawel 5 , 31-001, Krakรณw, Poland |

Maintainer