janu-software/coding-standard 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

janu-software/coding-standard

最新稳定版本:v8.5.0

Composer 安装命令:

composer require janu-software/coding-standard

包简介

README 文档

README

Downloads this Month Latest Stable Version License

This is set of sniffs and fixers that checks and fixes code of Nette Framework against Coding Standard in Documentation.

Installation and Usage

Install the tool in a global directory. Its name will be for example /nette-cs:

composer create-project janu-software/coding-standard /nette-cs

Check coding standard for PHP 8.4 in folders src and tests:

/nette-cs/ecs check src tests --preset php84

And fix it:

/nette-cs/ecs fix src tests --preset php84

If no PHP version is specified, it will try to find out from the composer.json file.

GitHub Actions

# .github/workflows/coding-style.yml
steps:
    - uses: actions/checkout@v4
    - uses: shivammathur/setup-php@v2
      with:
          php-version: 8.4

    - run: composer create-project nette/coding-standard temp/coding-standard
    - run: php temp/coding-standard/ecs check src tests --preset php84

统计信息

  • 总下载量: 616
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-11