malukenho / kawaii-gherkin
一个小型库,用于检查和修复令人烦恼的Gherkin代码风格
1.0.0
2024-07-03 14:57 UTC
Requires
- php: ^8.0
- behat/gherkin: >=4.9
- sebastian/diff: >=6.0
- symfony/console: >=7.0
- symfony/finder: >=7.0
Requires (Dev)
- phpunit/phpunit: >=4.0
This package is auto-updated.
Last update: 2024-09-03 15:36:45 UTC
README
可爱的Gherkin 是一个小工具,用于修复和验证Gherkin代码风格。
安装
$ composer require --dev malukenho/kawaii-gherkin
分析代码
要分析代码风格,只需简单运行
$ vendor/bin/kawaii gherkin:check [--align [right|left]] <directory>
修复代码
要修复代码风格,只需简单运行
$ vendor/bin/kawaii gherkin:fix [--align [right|left]] <directory>
示例
之前
@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 |
之后
@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 |
作者
- Jefersson Nathan (@malukenho)