Skip to content
Permalink
Browse files

Updated the php_codesniffer required version and added a default phpc…

…s.xml.

Added a PHPMD configuration file.
Updated phpci.yml to use the configuration files.

Close #913
  • Loading branch information...
Adirelle authored and tvbeek committed Apr 14, 2015
1 parent f25b1d2 commit 290c34a27da14b8632bcc3a2a5cc05e68f0ab3b3
Showing with 52 additions and 8 deletions.
  1. +1 −1 composer.json
  2. +12 −6 composer.lock
  3. +3 −1 phpci.yml
  4. +19 −0 phpcs.xml
  5. +17 −0 phpmd.xml
@@ -52,7 +52,7 @@
"require-dev": {
"phpunit/phpunit": "~4.5",
"phpmd/phpmd": "~2.0",
"squizlabs/php_codesniffer": "~2.0",
"squizlabs/php_codesniffer": "~2.3",
"block8/php-docblock-checker": "~1.0",
"phploc/phploc": "~2.0"
},

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -21,8 +21,10 @@ test:
- vendor/
php_mess_detector:
allowed_warnings: 0
rules:
- phpmd.xml
php_code_sniffer:
standard: "PSR2"
standard: phpcs.xml
allowed_warnings: 0
allowed_errors: 0
php_loc:
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<ruleset name="PHPCI">

<description>Codestyle ruleset for PHPCI</description>

<rule ref="PSR2"/>

<file>PHPCI</file>

<arg name="encoding" value="UTF-8"/>
<arg name="extensions" value="php"/>

<exclude-pattern>PHPCI/Migrations/*</exclude-pattern>
<exclude-pattern>PHPCI/Model/Base/*</exclude-pattern>
<exclude-pattern>PHPCI/Languages/*</exclude-pattern>
<exclude-pattern>Tests/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>

</ruleset>
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<ruleset name="PHPCI"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0
http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="
http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
PHPCI rule set
</description>

<rule ref="rulesets/codesize.xml" />
<rule ref="rulesets/unusedcode.xml" />
<rule ref="rulesets/naming.xml" />

</ruleset>

0 comments on commit 290c34a

Please sign in to comment.
You can’t perform that action at this time.