|
| 1 | +<?xml version="1.0"?> |
| 2 | +<ruleset name="php-mqtt Code Style Standard"> |
| 3 | + <description>php-mqtt Code Style Standard</description> |
| 4 | + |
| 5 | + <rule ref="PSR1"/> |
| 6 | + <rule ref="PSR2"> |
| 7 | + <exclude name="PSR2.Methods.MethodDeclaration.AbstractAfterVisibility"/> |
| 8 | + <exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis"/> |
| 9 | + </rule> |
| 10 | + |
| 11 | + <rule ref="Generic.Arrays.ArrayIndent"> |
| 12 | + <exclude name="Generic.Arrays.ArrayIndent.CloseBraceNotNewLine"/> |
| 13 | + </rule> |
| 14 | + <rule ref="Generic.Classes.DuplicateClassName"/> |
| 15 | + <rule ref="Generic.CodeAnalysis.EmptyStatement"> |
| 16 | + <exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedCatch"/> |
| 17 | + </rule> |
| 18 | + <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/> |
| 19 | + <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/> |
| 20 | + <rule ref="Generic.CodeAnalysis.JumbledIncrementer"/> |
| 21 | + <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/> |
| 22 | + <rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/> |
| 23 | + <rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/> |
| 24 | + <rule ref="Generic.Commenting.Todo"> |
| 25 | + <exclude-pattern>src/*</exclude-pattern> |
| 26 | + </rule> |
| 27 | + <rule ref="Generic.ControlStructures.InlineControlStructure"/> |
| 28 | + <rule ref="Generic.Files.ByteOrderMark"/> |
| 29 | + <rule ref="Generic.Files.LineEndings"/> |
| 30 | + <rule ref="Generic.Files.LineLength"> |
| 31 | + <properties> |
| 32 | + <property name="lineLimit" value="150"/> |
| 33 | + <property name="absoluteLineLimit" value="0"/> |
| 34 | + </properties> |
| 35 | + </rule> |
| 36 | + <rule ref="Generic.Formatting.DisallowMultipleStatements"/> |
| 37 | + <rule ref="Generic.Formatting.MultipleStatementAlignment"/> |
| 38 | + <rule ref="Generic.Formatting.SpaceAfterCast"/> |
| 39 | + <rule ref="Generic.Functions.CallTimePassByReference"/> |
| 40 | + <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/> |
| 41 | + <rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/> |
| 42 | + <rule ref="Generic.Metrics.CyclomaticComplexity"> |
| 43 | + <properties> |
| 44 | + <property name="complexity" value="50"/> |
| 45 | + <property name="absoluteComplexity" value="100"/> |
| 46 | + </properties> |
| 47 | + </rule> |
| 48 | + <rule ref="Generic.Metrics.NestingLevel"> |
| 49 | + <properties> |
| 50 | + <property name="nestingLevel" value="10"/> |
| 51 | + <property name="absoluteNestingLevel" value="30"/> |
| 52 | + </properties> |
| 53 | + </rule> |
| 54 | + <rule ref="Generic.NamingConventions.ConstructorName"/> |
| 55 | + <rule ref="Generic.PHP.LowerCaseConstant"/> |
| 56 | + <rule ref="Generic.PHP.DeprecatedFunctions"/> |
| 57 | + <rule ref="Generic.PHP.DisallowShortOpenTag"/> |
| 58 | + <rule ref="Generic.PHP.ForbiddenFunctions"/> |
| 59 | + <rule ref="Generic.WhiteSpace.DisallowTabIndent"/> |
| 60 | + <rule ref="Generic.WhiteSpace.ScopeIndent"> |
| 61 | + <properties> |
| 62 | + <property name="indent" value="4"/> |
| 63 | + </properties> |
| 64 | + </rule> |
| 65 | + <rule ref="MySource.PHP.EvalObjectFactory"/> |
| 66 | + <rule ref="PEAR.Commenting.ClassComment"> |
| 67 | + <exclude name="PEAR.Commenting.ClassComment.MissingAuthorTag"/> |
| 68 | + <exclude name="PEAR.Commenting.ClassComment.MissingCategoryTag"/> |
| 69 | + <exclude name="PEAR.Commenting.ClassComment.MissingLicenseTag"/> |
| 70 | + <exclude name="PEAR.Commenting.ClassComment.MissingLinkTag"/> |
| 71 | + </rule> |
| 72 | + <rule ref="PEAR.Commenting.ClassComment.Missing"/> |
| 73 | + <rule ref="PEAR.Commenting.ClassComment.MissingPackageTag"/> |
| 74 | + <rule ref="PEAR.Commenting.InlineComment"/> |
| 75 | + <rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace"/> |
| 76 | + <rule ref="PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose"/> |
| 77 | + <rule ref="Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast"/> |
| 78 | + <rule ref="Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace"> |
| 79 | + <exclude-pattern>src/*</exclude-pattern> |
| 80 | + </rule> |
| 81 | + <rule ref="Zend.Files.ClosingTag"/> |
| 82 | + |
| 83 | + <file>src</file> |
| 84 | + |
| 85 | + <arg name="colors"/> |
| 86 | + <arg value="sp"/> |
| 87 | + <ini name="memory_limit" value="128M"/> |
| 88 | +</ruleset> |
0 commit comments