Skip to content

Commit

Permalink
Update phpcs coverage to actual (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnaelMobilia authored and trasher committed Jan 3, 2017
1 parent cd11539 commit eb6e40b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions source/codingstandards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -320,19 +320,15 @@ In order to check some stabdards are respected, we provide some custom `PHP Code

.. code-block:: bash
phpcs --standard=tools/phpcs-rules.xml inc/
.. warning::

At the moment I'm writing these lines, only the ``inc`` directory has been made standards compliant with the script. Other directories, such as ``front``, ``ajax`` and so on will probably throw many errors.
phpcs --standard=tools/phpcs-rules.xml inc/ front/ ajax/ tests/
If the above command does not provide any output, then, all is OK :)

An example error output would looks like:

.. code-block:: bash
phpcs --standard=tools/phpcs-rules.xml inc/
phpcs --standard=tools/phpcs-rules.xml inc/ front/ ajax/ tests/
FILE: /var/www/webapps/glpi/tests/HtmlTest.php
----------------------------------------------------------------------
Expand Down

0 comments on commit eb6e40b

Please sign in to comment.