cleaning up the build directory
parent
e3de51078d
commit
177252af0b
@ -1,28 +0,0 @@
|
|||||||
How to setup build.xml on your local machine?
|
|
||||||
|
|
||||||
1.) Install ant
|
|
||||||
e.g. apt-get install ant
|
|
||||||
|
|
||||||
2.) Install jslint
|
|
||||||
Get the latest distribution from http://code.google.com/p/jslint4java/ and
|
|
||||||
place jslint4java-*.jar in your home under .ant/lib/
|
|
||||||
|
|
||||||
3.) Install PHP qa tools
|
|
||||||
Run as root:
|
|
||||||
pear config-set auto_discover 1
|
|
||||||
pear install pear.phpqatools.org/phpqatools pear.netpirates.net/phpDox
|
|
||||||
|
|
||||||
Alternative:
|
|
||||||
pear install pear.phpunit.de/phploc
|
|
||||||
pear install pear.phpunit.de/phpcpd
|
|
||||||
pear install pear.phpmd.org/PHP_PMD
|
|
||||||
pear install pear.pdepend.org/PHP_Depend
|
|
||||||
pear install pear.php.org/PHP_CodeSniffer
|
|
||||||
pear install PHP_CodeSniffer
|
|
||||||
pear install pear.phpqatools.org/PHP_CodeBrowser
|
|
||||||
|
|
||||||
|
|
||||||
How to call this ant script?
|
|
||||||
ant -f build/build.xml -Dbasedir=.
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,80 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<ruleset name="PHP_CodeSniffer">
|
|
||||||
<description>The coding standard for PHP_CodeSniffer itself.</description>
|
|
||||||
<exclude-pattern>*/Tests/*</exclude-pattern>
|
|
||||||
<exclude-pattern>*/lib/MDB2/*</exclude-pattern>
|
|
||||||
<exclude-pattern>*/3rdparty/*</exclude-pattern>
|
|
||||||
<exclude-pattern>*.min.*</exclude-pattern>
|
|
||||||
<exclude-pattern>*/l10n/*</exclude-pattern>
|
|
||||||
<exclude-pattern>*/files_texteditor/js/aceeditor/*</exclude-pattern>
|
|
||||||
<exclude-pattern>*/files_pdfviewer/js/pdfjs/*</exclude-pattern>
|
|
||||||
<exclude-pattern>*/files_odfviewer/src/*</exclude-pattern>
|
|
||||||
<exclude-pattern>*/files_svgedit/svg-edit/*</exclude-pattern>
|
|
||||||
<exclude-pattern>*jquery-ui-*.css</exclude-pattern>
|
|
||||||
<extensions>php</extensions>
|
|
||||||
|
|
||||||
<!-- Include the whole PEAR standard -->
|
|
||||||
<rule ref="PEAR">
|
|
||||||
<exclude name="PEAR.Commenting.FileComment.InvalidAuthors" />
|
|
||||||
<exclude name="PEAR.Commenting.FileComment.TagIndent" />
|
|
||||||
<exclude name="PEAR.Commenting.FileComment.MissingVersion" />
|
|
||||||
<exclude name="PEAR.Commenting.FileComment.MissingTag" />
|
|
||||||
<exclude name="PEAR.Commenting.ClassComment.TagIndent" />
|
|
||||||
<!-- exclude name="PEAR.WhiteSpace.ScopeIndent.Incorrect" /-->
|
|
||||||
<exclude name="PEAR.Commenting.ClassComment.WrongTagOrder" />
|
|
||||||
<exclude name="Generic.WhiteSpace.DisallowTabIndent.TabsUsed" />
|
|
||||||
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceBeforeOpenBracket" />
|
|
||||||
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket" />
|
|
||||||
<exclude name="Generic.ControlStructures.InlineControlStructure.Discouraged" />
|
|
||||||
<exclude name="PEAR.Commenting.FunctionComment.ParameterCommentsNotAligned" />
|
|
||||||
<exclude name="PEAR.Commenting.FunctionComment.MissingParamTag" />
|
|
||||||
<exclude name="PEAR.ControlStructures.ControlSignature" />
|
|
||||||
|
|
||||||
<!-- ident and alignment stuff -->
|
|
||||||
<!-- exclude name="PEAR.ControlStructures.MultiLineCondition.Alignment" />
|
|
||||||
<exclude name="PEAR.WhiteSpace.ScopeClosingBrace.BreakIdent" / -->
|
|
||||||
|
|
||||||
<!-- allow curly on classes and functions -->
|
|
||||||
<exclude name="PEAR.Functions.FunctionDeclaration.BraceOnSameLine" />
|
|
||||||
<exclude name="PEAR.Classes.ClassDeclaration.OpenBraceNewLine" />
|
|
||||||
|
|
||||||
<exclude name="PEAR.NamingConventions.ValidFunctionName.PrivateNoUnderscore" />
|
|
||||||
<exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore" />
|
|
||||||
<exclude name="PEAR.WhiteSpace.ScopeIndent"/>
|
|
||||||
</rule>
|
|
||||||
|
|
||||||
<rule ref="Zend.Files.ClosingTag" />
|
|
||||||
|
|
||||||
<rule ref="Generic.WhiteSpace.ScopeIndent">
|
|
||||||
<properties>
|
|
||||||
<property name="indent" value="4"/>
|
|
||||||
</properties>
|
|
||||||
</rule>
|
|
||||||
|
|
||||||
<rule ref="Generic.Files.LineLength">
|
|
||||||
<properties>
|
|
||||||
<property name="lineLimit" value="120"/>
|
|
||||||
<property name="absoluteLineLimit" value="160"/>
|
|
||||||
</properties>
|
|
||||||
</rule>
|
|
||||||
|
|
||||||
<!-- Include most of the Squiz standard -->
|
|
||||||
<!-- rule ref="Squiz">
|
|
||||||
<exclude name="Squiz.Classes.ClassFileName"/>
|
|
||||||
<exclude name="Squiz.Classes.ValidClassName"/>
|
|
||||||
<exclude name="Squiz.Commenting.ClassComment"/>
|
|
||||||
<exclude name="Squiz.Commenting.FileComment"/>
|
|
||||||
<exclude name="Squiz.Commenting.FunctionComment"/>
|
|
||||||
<exclude name="Squiz.Commenting.VariableComment"/>
|
|
||||||
<exclude name="Squiz.ControlStructures.SwitchDeclaration"/>
|
|
||||||
<exclude name="Squiz.Files.FileExtension"/>
|
|
||||||
<exclude name="Squiz.NamingConventions.ConstantCase"/>
|
|
||||||
<exclude name="Squiz.Operators.ComparisonOperatorUsage"/>
|
|
||||||
</rule -->
|
|
||||||
|
|
||||||
<!-- We allow variables to be used inside double quoted strings -->
|
|
||||||
<!-- rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar">
|
|
||||||
<severity>0</severity>
|
|
||||||
</rule -->
|
|
||||||
|
|
||||||
</ruleset>
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<ruleset name="My first PHPMD rule set" 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> My custom rule set that checks my code... </description>
|
|
||||||
<!-- Import the entire unused code rule set -->
|
|
||||||
<rule ref="rulesets/unusedcode.xml" />
|
|
||||||
|
|
||||||
<!-- Import the entire cyclomatic complexity rule -->
|
|
||||||
<rule ref="rulesets/codesize.xml/CyclomaticComplexity" />
|
|
||||||
</ruleset>
|
|
||||||
Loading…
Reference in New Issue