Commit 24445c6b authored by bmortier's avatar bmortier
Browse files

Merge branch '10-the-code-sniffer-command-is-wrong' into 'master'

Resolve "The code sniffer command is wrong"

Closes #10

See merge request !14
Showing with 10 additions and 2 deletions
+10 -2
...@@ -280,11 +280,19 @@ Files Format ...@@ -280,11 +280,19 @@ Files Format
Checking standards Checking standards
------------------ ------------------
In order to check some standards are respected, we provide some custom `PHP CodeSniffer <http://pear.php.net/package/PHP_CodeSniffer>`_ rules. From the fusiondirectory root directory, just run: In order to check some standards are respected, we provide some custom `PHP CodeSniffer <http://pear.php.net/package/PHP_CodeSniffer>`_ rules.
First clone the dev-tools that contains Fusiondirectory developement tools
.. code-block:: bash
git clone https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git
Then run the codesniffer rules from the top directory:
.. code-block:: bash .. code-block:: bash
phpcs --standard=../fusiondirectory-plugins/developers/FDStandard/ruleset.xml include find . -type f -name '*.php' -o -name '*.inc' -exec phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml "{}" \;
If the above command does not provide any output, then, all is OK :) If the above command does not provide any output, then, all is OK :)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment