|
|
### PHPCS Installing
|
|
|
1. ``brew install php-code-sniffer``
|
|
|
2. ``phpcs --version``
|
|
|
|
|
|
### SublimeText + Linter-phpcs
|
|
|
|
|
|
1. Install package control : https://packagecontrol.io/installation
|
|
|
2. Package : SublimeLineter, SublimeLinter-phpcs
|
|
|
3. Preferences > Packages settings > SublimeLinter > Settings - User
|
|
|
|
|
|
```
|
|
|
{
|
|
|
"user": {
|
|
|
"debug": true,
|
|
|
"linters": {
|
|
|
"phpcs": {
|
|
|
"@disable": false,
|
|
|
"args": [
|
|
|
"-n",
|
|
|
"-p",
|
|
|
"-s"
|
|
|
],
|
|
|
"excludes": [
|
|
|
"*.blade.php"
|
|
|
],
|
|
|
"standard": [
|
|
|
"/Users/kamolpop/coding-standard/php-thinknet.xml"
|
|
|
] |
|
|
\ No newline at end of file |
|
|
"args": [
|
|
|
"-n",
|
|
|
"-p",
|
|
|
"-s"
|
|
|
],
|
|
|
"excludes": [
|
|
|
"*.blade.php"
|
|
|
],
|
|
|
"standard": [
|
|
|
"/Users/kamolpop/coding-standard/php-thinknet.xml"
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |