https://github.com/crazyfactory/php-sniffs
https://github.com/crazyfactory/php-sniffs
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/crazyfactory/php-sniffs
- Owner: crazyfactory
- Created: 2017-06-26T03:33:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-03T11:58:24.000Z (about 3 years ago)
- Last Synced: 2025-02-16T15:31:18.344Z (over 1 year ago)
- Language: PHP
- Size: 64.5 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
php-codestyles
=======
Crazy Factory default code styles to be used with Squizlabs' codesniffer and PHPCSFixer.
## Install
1) Create a file `easy-coding-standard.neon` in the root path of project with at least below contents:
```yml
includes:
- vendor/crazyfactory/sniffs/easy-coding-standard.neon
```
2) Run `composer require-dev crazyfactory/sniffs`
43 Add a linting command to `composer.json`
```
"scripts": {
"lint": "ecs check src cron tests --clear-cache",
"lint:fix": "ecs check src cron tests --clear-cache --fix"
}
```