fusionspim/pint-coding-style

此包已被废弃且不再维护。未建议替代包。

Fusions PIM 开发团队使用的 Laravel Pint 配置

1.0.0 2022-11-03 13:09 UTC

This package is auto-updated.

Last update: 2023-03-31 16:18:36 UTC


README

此仓库提供了 Laravel Pint 的配置,我们使用它来验证和强制执行 Fusions PIM 中 PHP 代码的单一编码标准。

安装

  1. 运行 composer require --dev laravel/pint fusionspim/pint-coding-style

  2. 添加脚本到 composer.json

{
    ...
    "scripts": {
        ...
        "fix-cs": "pint --config vendor/fusionspim/pint-coding-style/pint.json",
        ...
    }
    ...
}

  1. 添加到 .gitignore
.pint.cache
  1. 添加到持续集成工作流程

composer fix-cs -- --test

使用

运行 composer fix-cs