|
| 1 | +<?xml version="1.0" ?> |
| 2 | +<ruleset |
| 3 | + name="Cdn77CS" |
| 4 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 5 | + xsi:noNamespaceSchemaLocation="../../vendor/squizlabs/php_codesniffer/phpcs.xsd" |
| 6 | +> |
| 7 | + <arg name="extensions" value="php"/> |
| 8 | + <arg name="parallel" value="16"/> |
| 9 | + <arg name="colors"/> |
| 10 | + <arg name="encoding" value="utf-8"/> |
| 11 | + <arg value="n"/> |
| 12 | + <arg value="p"/> |
| 13 | + <arg value="s"/> |
| 14 | + |
| 15 | + <rule ref="Cdn77.NamingConventions.ValidConstantName"/> |
| 16 | + <rule ref="Cdn77.NamingConventions.ValidVariableName"/> |
| 17 | + |
| 18 | + <rule ref="SlevomatCodingStandard.Classes.ClassStructure"> |
| 19 | + <properties> |
| 20 | + <property name="groups" type="array" value=" |
| 21 | + uses, |
| 22 | + public constants, |
| 23 | + protected constants, |
| 24 | + private constants, |
| 25 | + enum cases, |
| 26 | + public static properties, |
| 27 | + protected static properties, |
| 28 | + private static properties, |
| 29 | + public properties, |
| 30 | + protected properties, |
| 31 | + private properties, |
| 32 | + constructor, |
| 33 | + static constructors, |
| 34 | + destructor, |
| 35 | + magic methods, |
| 36 | + all public methods, |
| 37 | + all protected methods, |
| 38 | + all private methods, |
| 39 | + "/> |
| 40 | + </properties> |
| 41 | + </rule> |
| 42 | + <rule ref="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion" /> |
| 43 | + <rule ref="SlevomatCodingStandard.Commenting.ForbiddenAnnotations"> |
| 44 | + <properties> |
| 45 | + <property name="forbiddenAnnotations" type="array" extend="true"> |
| 46 | + <!-- Use attributes instead --> |
| 47 | + <element value="@covers" /> |
| 48 | + <element value="@coversDefaultClass" /> |
| 49 | + <element value="@coversNothing" /> |
| 50 | + <element value="@depends" /> |
| 51 | + <element value="@doesNotPerformAssertions" /> |
| 52 | + <element value="@group" /> |
| 53 | + <element value="@large" /> |
| 54 | + <element value="@medium" /> |
| 55 | + <element value="@preserveGlobalState" /> |
| 56 | + <element value="@requires" /> |
| 57 | + <element value="@runInSeparateProcess" /> |
| 58 | + <element value="@runTestsInSeparateProcesses" /> |
| 59 | + <element value="@small" /> |
| 60 | + <element value="@test" /> |
| 61 | + <element value="@testDox" /> |
| 62 | + <element value="@testWith" /> |
| 63 | + <element value="@ticket" /> |
| 64 | + <element value="@uses" /> |
| 65 | + </property> |
| 66 | + </properties> |
| 67 | + </rule> |
| 68 | + <rule ref="SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing"> |
| 69 | + <properties> |
| 70 | + <property name="linesCountAfterWhenLastInCaseOrDefault" value="0"/> |
| 71 | + <property name="jumpStatements" type="array" extend="true"> |
| 72 | + <element value="goto"/> |
| 73 | + <element value="break"/> |
| 74 | + <element value="continue"/> |
| 75 | + </property> |
| 76 | + </properties> |
| 77 | + </rule> |
| 78 | + <rule ref="SlevomatCodingStandard.Files.LineLength"> |
| 79 | + <properties> |
| 80 | + <property name="ignoreComments" value="true" /> |
| 81 | + </properties> |
| 82 | + </rule> |
| 83 | + <rule ref="SlevomatCodingStandard.Functions.RequireArrowFunction" /> |
| 84 | + |
| 85 | + <rule ref="Squiz.WhiteSpace.OperatorSpacing"> |
| 86 | + <properties> |
| 87 | + <property name="ignoreNewlines" value="true"/> |
| 88 | + <property name="ignoreSpacingBeforeAssignments" value="false"/> |
| 89 | + </properties> |
| 90 | + </rule> |
| 91 | +</ruleset> |
0 commit comments