Created
June 23, 2015 14:24
-
-
Save bkozora/37160e7d0fc1b8456145 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Checking a directory with PHP_CodeSniffer | |
$ phpcs /path/to/code | |
FILE: /path/to/code/myfile.php | |
-------------------------------------------------------------------------------- | |
FOUND 5 ERROR(S) AFFECTING 5 LINE(S) | |
-------------------------------------------------------------------------------- | |
2 | ERROR | Missing file doc comment | |
20 | ERROR | PHP keywords must be lowercase; expected "false" but found "FALSE" | |
47 | ERROR | Line not indented correctly; expected 4 spaces but found 1 | |
51 | ERROR | Missing function doc comment | |
88 | ERROR | Line not indented correctly; expected 9 spaces but found 6 | |
-------------------------------------------------------------------------------- | |
FILE: /path/to/code/yourfile.php | |
-------------------------------------------------------------------------------- | |
FOUND 1 ERROR(S) AND 1 WARNING(S) AFFECTING 1 LINE(S) | |
-------------------------------------------------------------------------------- | |
21 | ERROR | PHP keywords must be lowercase; expected "false" but found | |
| | "FALSE" | |
21 | WARNING | Equals sign not aligned with surrounding assignments | |
-------------------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment