Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thba17 committed Apr 6, 2018
0 parents commit d194c53
Show file tree
Hide file tree
Showing 51 changed files with 3,005 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<ruleset name="PHPCS rule set">
<description>Custom rule set.</description>

<file>.</file>

<exclude-pattern>doc/</exclude-pattern>
<exclude-pattern>htdocs/</exclude-pattern>
<exclude-pattern>view/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>

<!--
<arg name="encoding" value="utf-8"/>
<arg name="show_warnings" value="1"/>
<arg name="colors" value="1"/>
<arg name="tab_width" value="4"/>
-->
<!--<arg name="extensions" value=".php"/>-->
<!--<arg name="warning-severity" value="5"/>-->

<rule ref="PSR2">
<!--
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" /> <exclude name="Squiz.Commenting.FileComment" />
<exclude name="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace" />
-->
</rule>
</ruleset>
14 changes: 14 additions & 0 deletions .phpdoc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<phpdoc>
<title>Anax API Documentation</title>
<parser>
<target>doc/api</target>
</parser>
<transformer>
<target>doc/api</target>
</transformer>
<files>
<directory>src</directory>
<directory>vendor/anax/*/src</directory>
</files>
</phpdoc>
43 changes: 43 additions & 0 deletions .phpmd.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0"?>
<ruleset name="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>
Custom rule set for oophp course.
</description>

<exclude-pattern>doc/</exclude-pattern>
<exclude-pattern>htdocs/</exclude-pattern>
<exclude-pattern>view/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>

<rule ref="rulesets/cleancode.xml">
<exclude name="BooleanArgumentFlag" />
<exclude name="ElseExpression" />
</rule>

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

<rule ref="rulesets/controversial.xml">
<exclude name="Superglobals" />
</rule>

<rule ref="rulesets/design.xml" />

<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable" />
</rule>

<rule ref="rulesets/naming.xml/ShortVariable">
<properties>
<property name="exceptions" value="i,j,db,id,di,t,e" />
</properties>
</rule>

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

</ruleset>
22 changes: 22 additions & 0 deletions .phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<phpunit
bootstrap="test/config.php">

<testsuites>
<testsuite name="all">
<directory>test</directory>
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>

<logging>
<log type="coverage-html" target="build/coverage" charset="UTF-8" highlight="true" lowUpperBound="35" highLowerBound="70" />
<log type="coverage-clover" target="build/coverage.clover" />
</logging>

</phpunit>
Loading

0 comments on commit d194c53

Please sign in to comment.