承接 sunnysideup/easy-coding-standards 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

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)

  1. open your terminal
  2. 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)

  1. 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.

  1. 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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 1
  • 开发语言: Shell

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-12-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固