Skip to content
Browse files

changing build.xml to use phpcs.xml and phpmd.xml

  • Loading branch information...
1 parent e28a044 commit aebddadd8bd4e4638b316673521d6b2a640d1234 @robo47 committed May 31, 2011
Showing with 31 additions and 6 deletions.
  1. +3 −3 build.xml
  2. +28 −3 build/phpcs.xml
View
6 build.xml
@@ -125,7 +125,7 @@
<exec executable="phpmd">
<arg line="${source}
xml
- codesize,design,naming,unusedcode
+ build/phpmd.xml
--reportfile ${basedir}/build/logs/pmd.xml" />
</exec>
</target>
@@ -146,7 +146,7 @@
<exec executable="phpcs" output="/dev/null">
<arg line="--report=checkstyle
--report-file=${basedir}/build/logs/checkstyle.xml
- --standard=PEAR
+ --standard=build/phpcs.xml
${source}" />
</exec>
</target>
@@ -166,4 +166,4 @@
</target>
<target name="build" depends="clean,parallelTasks,phpunit,phpcb"/>
-</project>
+</project>
View
31 build/phpcs.xml
@@ -1,4 +1,29 @@
-<ruleset name="Zend Standard">
- <description>Zend Standard, exclude extraneous</description>
- <rule ref="Zend" />
+<ruleset name="Robo47 Components">
+ <description>Robo47 Components Standard - Zend Framework-oriented</description>
+
+ <!-- Include some sniffs from all around the place -->
+ <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
+ <rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
+ <rule ref="Generic.PHP.DisallowShortOpenTag"/>
+ <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
+ <rule ref="PEAR.ControlStructures.ControlSignature"/>
+ <rule ref="PEAR.Functions.FunctionCallSignature"/>
+ <rule ref="PEAR.Functions.ValidDefaultValue"/>
+ <rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
+ <rule ref="Squiz.Functions.GlobalFunction"/>
+
+ <!-- Lines can be 80 chars long, show errors at 120 chars -->
+ <rule ref="Generic.Files.LineLength">
+ <properties>
+ <property name="lineLimit" value="80"/>
+ <property name="absoluteLineLimit" value="120"/>
+ </properties>
+ </rule>
+
+ <!-- Use Unix newlines -->
+ <rule ref="Generic.Files.LineEndings">
+ <properties>
+ <property name="eolChar" value="\n"/>
+ </properties>
+ </rule>
</ruleset>

0 comments on commit aebddad

Please sign in to comment.
Something went wrong with that request. Please try again.