sunnysideup / easy-coding-standards
ECS PHP Linting.
Installs: 1 148
Dependents: 1
Suggesters: 1
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 5
Language:Shell
Type:silverstripe-vendormodule
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.9.6
- 17.9.5
- 17.9.4
- 17.9.3
- 17.9.2
- 17.9.1
- 17.9.0
- 17.8.1
- 17.8.0
- 17.7.31
- 17.7.30
- 17.7.29
- 17.7.28
- 17.7.27
- 17.7.26
- 17.7.25
- 17.7.24
- 17.7.23
- 17.7.22
- 17.7.21
- 17.7.20
- 17.7.19
- 17.7.18
- 17.7.17
- 17.7.16
- 17.7.15
- 17.7.14
- 17.7.13
- 17.7.12
- 17.7.11
- 17.7.10
- 17.7.9
- 17.7.8
- 17.7.7
- 17.7.6
- 17.7.5
- 17.7.4
- 17.7.3
- 17.7.2
- 17.7.1
- 17.7.0
- 17.6.1
- 17.6.0
- 17.5.4
- 17.5.3
- 17.5.2
- 17.5.1
- 17.5.0
- 17.4.0
- 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-12-12 18:09:47 UTC
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-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-diff-analyser - 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-import - sake-ss-db-open - sake-ss-dev-build - sake-ss-flush - sake-ss-rsync-asset - sake-ss-start-new-module # test - sake-test-site # rsync - sake-ss-rsync-assets - sake-ss-rsync-database # scrutinizer - sake-scrutinizer-add # machine maintenance - sake-update-vs-code
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
composer global require sunnysideup/easy-coding-standards:dev-master
- then add path to
~/.bashrc
(or otherwise): choose the appropriate one ...
PATH=~/.composer/vendor/bin:$PATH PATH=~/.config/composer/vendor/bin:$PATH
This will make the global composer vendor/bin
available anywhere (use with care!).
- To enable it, run:
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