2021-08-01 13:33:41 +02:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
name="Inwebs"
|
|
|
|
namespace="Inwebs\PhpCodesniffer\Inwebs"
|
|
|
|
xsi:noNamespaceSchemaLocation="../../vendor/squizlabs/php_codesniffer/phpcs.xsd">
|
|
|
|
<description>IN.WEBS PHP_CodeSniffer standard</description>
|
|
|
|
|
|
|
|
<!-- Base standard -->
|
|
|
|
<rule ref="DigiComp"/>
|
|
|
|
|
|
|
|
<rule ref="Generic.Formatting.SpaceAfterNot">
|
|
|
|
<properties>
|
|
|
|
<property name="spacing" value="0"/>
|
|
|
|
</properties>
|
|
|
|
</rule>
|
2022-11-30 12:25:23 +01:00
|
|
|
<rule ref="DigiComp.Annotations.ReturnIsNotVoid" />
|
2022-04-30 21:27:42 +02:00
|
|
|
<rule ref="DigiComp.Commenting.VariableComment.Missing">
|
|
|
|
<type>error</type>
|
|
|
|
<severity>6</severity>
|
|
|
|
</rule>
|
|
|
|
<rule ref="DigiComp.Commenting.VariableComment.MissingVarOrInheritDoc">
|
2021-08-01 13:33:41 +02:00
|
|
|
<type>error</type>
|
|
|
|
<severity>6</severity>
|
|
|
|
</rule>
|
|
|
|
|
|
|
|
<!-- TODO: Enforcement of doc types for methods -->
|
|
|
|
<!-- TODO: Never use /** inside of methods -->
|
|
|
|
<!-- TODO: Exception code should be unix timestamp (if possible), might be difficult to test -->
|
|
|
|
|
|
|
|
</ruleset>
|