Added CodeSniffer and PHPMD rules

This commit is contained in:
Alex Bilbie 2012-07-06 12:22:13 +01:00
parent eae6dc471d
commit fb98e7beb9
2 changed files with 22 additions and 0 deletions

8
build/phpcs.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>PHP_CodeSniffer configuration for OAuth 2.0 server</description>
<rule ref="PSR"/>
</ruleset>

14
build/phpmd.xml Normal file
View File

@ -0,0 +1,14 @@
<ruleset name="OAuth 2.0 Server"
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>
Ruleset for OAuth 2.0 server
</description>
<!-- Import the entire unused code rule set -->
<rule ref="rulesets/unusedcode.xml" />
</ruleset>