sunnysideup/easy-coding-standards
最新稳定版本:25.2.0
Composer 安装命令:
composer require sunnysideup/easy-coding-standards
包简介
ECS PHP Linting.
关键字:
README 文档
README
Lints your silverstripe php code, checks for potential bugs, and also has a raft of other helpful commands.
tl;dr
Install as global composer package and then try to access the commands, starting with sake- from the command line.
commands available
# help - sake-help # composer - sake-composer-about - get details about composer recipe at hand - sake-composer-available-updates - sake-composer-force-update - sake-composer-require - composer require with extras - sake-composer-update - composer update with extras # find - sake-find-in-files - sake-find-large-files - sake-find-large-folders # git - sake-git-quick - sake-git-commit-and-push - sake-git-commit-and-push-vendor-packages - goes through all vendor packages for uncommitted work - sake-git-diff-analyser - sake-git-fork-comparison - finds all the works and sees which one is ahead - sake-git-info - sake-git-find-any-changes - sake-git-remove-stale-branches - sake-git-merge-towards-production - take develop to production - sake-git-my-pull-requests - sake-git-my-work-being-forked - sake-git-squash-and-pr - squash and make a pull request - sake-git-squash-commits - sake-git-tag - sake-git-pipeline-ssh # php - sake-php-set-timezone - sake-php-line-counter # lint and security - sake-lint-all - sake-lint-class-rename-comparison - sake-lint-compat - sake-lint-ecs - sake-lint-ide-annotator - sake-lint-js - sake-lint-one-file - sake-lint-phan - sake-lint-psr-4-checker - sake-lint-rector - sake-lint-stan - sake-lint-security - sake-lint-remove-origs # edit with LLM - sake-llm-opencode # webpack - sake-npm-audit - sake-npm-install - sake-npm-build - sake-npm-dev - sake-npm-watch # npm / node - sake-npm-update-self - sake-npm-publish-on-npmjs-org # silverstripe - sake-ss-add-site - sake-ss-align-versions - sake-ss-create-env-file - sake-ss-db-dump - sake-ss-db-import - sake-ss-db-open - sake-ss-dev-build - sake-ss-flush - sake-ss-ready - sake-ss-rsync-asset - sake-ss-start-new-module - sake-ss-security-update - sake-ss-start-new-feature - sake-ss-start-test-site - sake-ss-template-check # rsync - sake-ss-rsync-all - sake-ss-rsync-assets - sake-ss-rsync-db - sake-ss-rsync-sspak # test - sake-test-site test a live site response times # scrutinizer - sake-scrutinizer-add # machine maintenance - sake-update-chromium - sake-update-vs-code - sake-update-composer # self - sake-self-update
How to install for one project (not recommended - as it may not work)
- open your terminal
- browse to root folder of your project and type:
composer require --dev sunnysideup/easy-coding-standards:dev-master
global install (recommended - more likely to work)
- open your terminal and type
# install ... composer global config minimum-stability dev composer global config prefer-stable true composer global require sunnysideup/easy-coding-standards:dev-master cat << 'EOF' >> ~/.bashrc # Add composer path PATH=~/.config/composer/vendor/bin:$PATH EOF source ~/.bashrc
or restart your computer.
- Now you should be able to run it from anywhere like this:
sake-lint-ecs [dir]
(this command, and all the other commands listed above).
How to use
Commands should be run from the root directory of your project.
To find out the options for a specific command:
sake-my-command -h
Not installed globally?
If not installed globally, then you should add vendor/bin/ in front of the commands.
vendor/bin/sake-my-command -h
统计信息
- 总下载量: 1.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-12-03