sunshineup / easy-coding-standards
ECS PHP Linting.
17.3.0
2024-09-20 23:37 UTC
Requires
- phan/phan: *@stable
- phpcompatibility/php-compatibility: ^9.3
- phpstan/phpstan: ^1.0
- rector/rector: ^1.0
- squizlabs/php_codesniffer: ^3.6
- symplify/easy-coding-standard: ^12.0
- dev-master
- 17.3.0
- 17.2.0
- 17.1.10
- 17.1.9
- 17.1.8
- 17.1.7
- 17.1.6
- 17.1.5
- 17.1.4
- 17.1.3
- 17.1.2
- 17.1.1
- 17.1.0
- 17.0.6
- 17.0.5
- 17.0.4
- 17.0.3
- 17.0.2
- 17.0.1
- 17.0.0
- 16.3.1
- 16.3.0
- 16.2.5
- 16.2.4
- 16.2.3
- 16.2.2
- 16.2.1
- 16.2.0
- 16.1.0
- 16.0.1
- 16.0.0
- 15.0.0
- 14.13.3
- 14.13.2
- 14.13.1
- 14.13.0
- 14.12.0
- 14.11.0
- 14.10.0
- 14.9.0
- 14.8.4
- 14.8.3
- 14.8.2
- 14.8.1
- 14.8.0
- 14.7.0
- 14.6.0
- 14.5.0
- 14.4.0
- 14.3.0
- 14.2.0
- 14.1.0
- 14.0.3
- 14.0.2
- 14.0.1
- 14.0.0
- 13.8.4
- 13.8.3
- 13.8.2
- 13.8.1
- 13.8.0
- 13.7.0
- 13.6.0
- 13.5.0
- 13.4.0
- 13.3.0
- 13.2.0
- 13.1.21
- 13.1.20
- 13.1.19
- 13.1.18
- 13.1.17
- 13.1.16
- 13.1.15
- 13.1.14
- 13.1.13
- 13.1.12
- 13.1.11
- 13.1.10
- 13.1.9
- 13.1.8
- 13.1.7
- 13.1.6
- 13.1.5
- 13.1.4
- 13.1.3
- 13.1.2
- 13.1.1
- 13.1.0
- 13.0.6
- 13.0.5
- 13.0.4
- 13.0.3
- 13.0.2
- 13.0.1
- 13.0.0
- 12.0.0
- 11.0.0
- 10.1.0
- 10.0.0
- 9.0.0
- 8.1.0
- 8.0.0
- 7.1.0
- 7.0.1
- 7.0.0
- 6.0.1
- 6.0.0
- 5.0.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.1.0
- 3.0.0
- 2.0.1
- 2.0.0
- 1.0.0
This package is auto-updated.
Last update: 2024-09-20 23:37:52 UTC
README
检查您的silverstripe php代码,查找潜在的错误,并包含一系列其他有用的命令。
tl;dr
作为全局composer包安装,然后在命令行中尝试访问命令,从sake-
开始。
可用命令
# help - sake-help # composer - sake-composer-available-updates - sake-composer-update # find - sake-find-in-files - sake-find-large-files # git - sake-git-commit-and-push - sake-git-commit-and-push-vendor-packages - sake-git-remove-stale-branches - sake-git-merge-develop-and-production - sake-git-squash-and-pr - sake-git-squash-commits - sake-git-tag # php - sake-php-set-timezone # lint - sake-lint-all - sake-lint-compat - sake-lint-ecs - sake-lint-ide-annotator - sake-lint-js - sake-lint-one-file - sake-lint-rector - sake-lint-remove-origs - sake-lint-stan # webpack - sake-npm-build - sake-npm-dev - sake-npm-install - sake-npm-watch # silverstripe - sake-ss-add-site - sake-ss-db-dump - sake-ss-db-open - sake-ss-dev-build - sake-ss-flush - sake-ss-rsync-asset - sake-ss-start-new-module # test - sake-test-site # scrutinizer - sake-scrutinizer-add # machine maintenance - sake-update-vs-code
如何为单个项目安装(不推荐 - 可能无法工作)
- 打开您的终端
- 浏览到项目的根目录并输入
composer require --dev sunnysideup/easy-coding-standards:dev-master
全局安装(推荐 - 更有可能成功)
- 打开您的终端并输入
composer global require sunnysideup/easy-coding-standards:dev-master
- 然后添加到
~/.bashrc
(或其他方式):选择合适的选项...
PATH=~/.composer/vendor/bin:$PATH PATH=~/.config/composer/vendor/bin:$PATH
这将使全局composer vendor/bin
在任何地方都可用(小心使用!)。
- 要启用它,运行
source ~/.bashrc
或重新启动您的计算机。
- 现在您应该可以从任何地方运行它,如下所示
sake-lint-ecs [dir]
(此命令以及上面列出的所有其他命令)。
如何使用
命令应在您的项目根目录下运行。
要了解特定命令的选项
sake-my-command -h
未全局安装?
如果没有全局安装,则应在命令前添加vendor/bin/
。
vendor/bin/sake-my-command -h