php-codesniffer/src/Inwebs/ruleset.xml
Marvin Kuhl 57a86ebb8d
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/pr/code-style Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
adds sniff to find @return void
2022-11-30 12:34:38 +01:00

30 lines
1.1 KiB
XML

<?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>
<rule ref="DigiComp.Annotations.ReturnIsNotVoid" />
<rule ref="DigiComp.Commenting.VariableComment.Missing">
<type>error</type>
<severity>6</severity>
</rule>
<rule ref="DigiComp.Commenting.VariableComment.MissingVarOrInheritDoc">
<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>