pedrotroller / kawaii
一个小型库,用于检查和修复令人烦恼的gherkin代码风格
1.1.0
2023-01-23 15:14 UTC
Requires
- php: 8.0.* || 8.1.* || 8.2.*
- behat/gherkin: ^4.9
- sebastian/diff: ^4.0
- symfony/console: 5.4.* || 6.*
- symfony/finder: 5.4.* || 6.*
Requires (Dev)
- behat/behat: ^3.12
- pedrotroller/php-cs-custom-fixer: ^2.30
- phpstan/phpstan: ^1.9.14
- phpstan/phpstan-symfony: ^1.2.20
This package is auto-updated.
Last update: 2024-08-23 18:51:57 UTC
README
此包是malukenho/kawaii-gerkin包的分支,由Jefersson NATHAN (@malukenho)创建。
Kawaii 是一个小型工具,用于修复和验证 gherkin 代码风格。
安装
$ composer require --dev pedrotroller/kawaii
分析代码
要分析代码风格,只需运行
$ vendor/bin/kawaii check [--align [right|left]] <directory>
修复代码
要修复代码风格,只需运行
$ vendor/bin/kawaii 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 |
维护者
- Pierre PLAZANET (@pedrotroller)