Skip to content

Instantly share code, notes, and snippets.

@jezao
Forked from zircote/reports.txt
Created November 27, 2020 01:25
Show Gist options
  • Save jezao/b77c558620d74509796a17eb8b7e5d38 to your computer and use it in GitHub Desktop.
Save jezao/b77c558620d74509796a17eb8b7e5d38 to your computer and use it in GitHub Desktop.
phpcs report types
phpcs --standard=tests/build/phpcs.xml --report=summary .
PHP CODE SNIFFER REPORT SUMMARY
--------------------------------------------------------------------------------
FILE ERRORS WARNINGS
--------------------------------------------------------------------------------
/usr/local/zend/apache2/htdocs/project/application/Bootstrap.php 1 4
...2/htdocs/Project/application/controllers/ActivityController.php 3 1
...
--------------------------------------------------------------------------------
A TOTAL OF 4 ERROR(S) AND 5 WARNING(S) WERE FOUND IN 99 FILE(S)
--------------------------------------------------------------------------------
Time: 8 seconds, Memory: 6.00Mb
phpcs --standard=tests/build/phpcs.xml --report=source .
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
--------------------------------------------------------------------------------
STANDARD CATEGORY SNIFF COUNT
--------------------------------------------------------------------------------
Generic Files Line length too long 330
Zend Naming conventions Valid variable name not camel caps 253
PEAR Control structures Control signature 249
Generic Functions Function call argument spacing no space aft 199
Zend Naming conventions Valid variable name private no underscore 70
Generic Functions Opening function brace bsd allman brace on 68
Generic Files Line length max exceeded 55
...
Zend Naming conventions Valid variable name string var not camel ca 1
--------------------------------------------------------------------------------
A TOTAL OF 1526 SNIFF VIOLATION(S) WERE FOUND IN 26 SOURCE(S)
--------------------------------------------------------------------------------
Time: 6 seconds, Memory: 6.00Mb
phpcs --standard=tests/build/phpcs.xml --report=full .
FILE: /usr/local/zend/apache2/htdocs/Project/application/Bootstrap.php
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AND 4 WARNING(S) AFFECTING 5 LINE(S)
--------------------------------------------------------------------------------
15 | WARNING | Line exceeds 80 characters; contains 92 characters
19 | WARNING | Line exceeds 80 characters; contains 103 characters
32 | WARNING | Line exceeds 80 characters; contains 84 characters
36 | WARNING | Line exceeds 80 characters; contains 99 characters
76 | ERROR | Space after opening parenthesis of function call prohibited
-------------------------------------------------------------------------------
...
Time: 7 seconds, Memory: 6.00Mb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment