|
| 1 | +<?xml version="1.0"?> |
| 2 | +<ruleset name="HDNET-Black"> |
| 3 | + <!-- Include Symfony2 Ruleset --> |
| 4 | + <rule ref="Symfony2"> |
| 5 | + <exclude name="Symfony2.Commenting.ClassComment.Missing"/> |
| 6 | + <exclude name="PEAR.Functions.ValidDefaultValue.NotAtEnd"/> |
| 7 | + <exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine"/> |
| 8 | + </rule> |
| 9 | + |
| 10 | + <rule ref="Generic.Arrays.DisallowLongArraySyntax"/> |
| 11 | + <rule ref="Squiz.Arrays.ArrayDeclaration"> |
| 12 | + <!-- Indent der Arrays gefällt mir nicht ...--> |
| 13 | + <exclude name="Squiz.Arrays.ArrayDeclaration.KeyNotAligned"/> |
| 14 | + <exclude name="Squiz.Arrays.ArrayDeclaration.ValueNotAligned"/> |
| 15 | + <!-- Indent der Klammern gefällt mir nicht ...--> |
| 16 | + <exclude name="Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned"/> |
| 17 | + </rule> |
| 18 | + |
| 19 | + <rule ref="Squiz.Strings.DoubleQuoteUsage"/> |
| 20 | + <rule ref="Squiz.Strings.ConcatenationSpacing"> |
| 21 | + <properties> |
| 22 | + <property name="spacing" value="1"/> |
| 23 | + </properties> |
| 24 | + </rule> |
| 25 | + <rule ref="Squiz.Scope.StaticThisUsage"/> |
| 26 | + <rule ref="Squiz.PHP.CommentedOutCode"> |
| 27 | + <properties> |
| 28 | + <property name="maxPercentage" value="10"/> |
| 29 | + </properties> |
| 30 | + </rule> |
| 31 | + |
| 32 | + <rule ref="Squiz.PHP.DisallowObEndFlush"/> |
| 33 | + <rule ref="Squiz.PHP.ForbiddenFunctions"> |
| 34 | + <properties> |
| 35 | + <property name="forbiddenFunctions" type="array" value="error_log=>null,print_r=>null,var_dump=>null,var_export=>null,die=>null,exit=>null,echo=>null,sizeof=>count,delete=>unset,join=>implode,is_null=>null,ini_set=>null"/> |
| 36 | + </properties> |
| 37 | + </rule> |
| 38 | + |
| 39 | + <rule ref="Squiz.PHP.Eval"/> |
| 40 | + <rule ref="Squiz.PHP.GlobalKeyword"/> |
| 41 | + <rule ref="Squiz.PHP.Heredoc"/> |
| 42 | + <rule ref="Squiz.PHP.LowercasePHPFunctions"/> |
| 43 | + <rule ref="Squiz.PHP.NonExecutableCode"/> |
| 44 | + <rule ref="Squiz.Operators.ValidLogicalOperators"/> |
| 45 | + <rule ref="Squiz.Objects.ObjectMemberComma"/> |
| 46 | + <rule ref="Squiz.Functions.GlobalFunction"/> |
| 47 | + <rule ref="Squiz.Functions.FunctionDuplicateArgument"/> |
| 48 | + <rule ref="Squiz.ControlStructures.ControlSignature"/> |
| 49 | + <rule ref="Squiz.ControlStructures.InlineIfDeclaration"/> |
| 50 | + <rule ref="Squiz.ControlStructures.SwitchDeclaration"> |
| 51 | + <exclude name="Squiz.ControlStructures.SwitchDeclaration.BreakIndent" /> |
| 52 | + </rule> |
| 53 | + <rule ref="Squiz.Commenting.DocCommentAlignment"/> |
| 54 | + <rule ref="Squiz.Commenting.EmptyCatchComment"/> |
| 55 | + <rule ref="Squiz.Commenting.FunctionCommentThrowTag"/> |
| 56 | + <rule ref="Squiz.Commenting.InlineComment"> |
| 57 | + <!-- kollodiert mit Squiz.PHP.CommentedOutCode.Found --> |
| 58 | + <exclude name="Squiz.Commenting.InlineComment.DocBlock"/> |
| 59 | + </rule> |
| 60 | + <rule ref="Squiz.Commenting.PostStatementComment"/> |
| 61 | + <rule ref="Squiz.Commenting.VariableComment"> |
| 62 | + <!-- Will von int auf integer geändert haben --> |
| 63 | + <exclude name="Squiz.Commenting.VariableComment.IncorrectVarType"/> |
| 64 | + <!-- Symfony/Doctrine Tags werden dadurch nicht mehr erlaubt --> |
| 65 | + <exclude name="Squiz.Commenting.VariableComment.TagNotAllowed"/> |
| 66 | + </rule> |
| 67 | + <rule ref="Squiz.Classes.ClassDeclaration"/> |
| 68 | + <rule ref="Squiz.Classes.SelfMemberReference"/> |
| 69 | + <rule ref="Squiz.WhiteSpace.OperatorSpacing"/> |
| 70 | + <rule ref="Generic.Formatting.MultipleStatementAlignment"/> |
| 71 | + <rule ref="Generic.Files.LineLength"> |
| 72 | + <properties> |
| 73 | + <property name="lineLimit" value="140"/> |
| 74 | + <property name="absoluteLineLimit" value="140"/> |
| 75 | + </properties> |
| 76 | + </rule> |
| 77 | + <rule ref="Squiz.WhiteSpace.FunctionSpacing"> |
| 78 | + <properties> |
| 79 | + <property name="spacing" value="1"/> |
| 80 | + </properties> |
| 81 | + </rule> |
| 82 | + <rule ref="Zend.NamingConventions.ValidVariableName"> |
| 83 | + <!-- Konflikt mit Squiz.WhiteSpace.FunctionSpacing.After --> |
| 84 | + <exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/> |
| 85 | + </rule> |
| 86 | + <rule ref="Generic.Classes.DuplicateClassName"/> |
| 87 | + <rule ref="Generic.CodeAnalysis.EmptyStatement"/> |
| 88 | + <rule ref="Generic.CodeAnalysis.JumbledIncrementer"/> |
| 89 | + <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/> |
| 90 | + <rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/> |
| 91 | + <rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/> |
| 92 | + <rule ref="Generic.ControlStructures.InlineControlStructure"/> |
| 93 | + <rule ref="Generic.Formatting.DisallowMultipleStatements"/> |
| 94 | + <rule ref="Generic.Formatting.MultipleStatementAlignment"/> |
| 95 | + <rule ref="Generic.Formatting.SpaceAfterCast"/> |
| 96 | + <rule ref="Generic.Functions.CallTimePassByReference"/> |
| 97 | + <rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/> |
| 98 | + <rule ref="Generic.Metrics.NestingLevel"> |
| 99 | + <properties> |
| 100 | + <property name="absoluteNestingLevel" value="5"/> |
| 101 | + </properties> |
| 102 | + </rule> |
| 103 | + <rule ref="Generic.NamingConventions.UpperCaseConstantName"/> |
| 104 | + <rule ref="Generic.NamingConventions.CamelCapsFunctionName"/> |
| 105 | + <rule ref="Generic.PHP.DeprecatedFunctions"/> |
| 106 | + <rule ref="Generic.PHP.DisallowShortOpenTag"/> |
| 107 | + <rule ref="Generic.PHP.NoSilencedErrors"/> |
| 108 | + <rule ref="Generic.Strings.UnnecessaryStringConcat"/> |
| 109 | + <rule ref="MySource.PHP.GetRequestData"/> |
| 110 | + <rule ref="PEAR.Commenting.InlineComment"/> |
| 111 | + <rule ref="PEAR.Formatting.MultiLineAssignment"/> |
| 112 | + <rule ref="PEAR.WhiteSpace.ObjectOperatorIndent"/> |
| 113 | + <rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/> |
| 114 | + <rule ref="PEAR.WhiteSpace.ScopeIndent"/> |
| 115 | + <rule ref="PSR1.Classes.ClassDeclaration"/> |
| 116 | + <rule ref="Squiz.PHP.DisallowMultipleAssignments"/> |
| 117 | + <rule ref="Squiz.WhiteSpace.FunctionSpacing"> |
| 118 | + <properties> |
| 119 | + <property name="spacing" value="1"/> |
| 120 | + </properties> |
| 121 | + </rule> |
| 122 | + <rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/> |
| 123 | + <rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/> |
| 124 | + <rule ref="Squiz.WhiteSpace.MemberVarSpacing"/> |
| 125 | + <rule ref="Squiz.WhiteSpace.ObjectOperatorSpacing"/> |
| 126 | + <rule ref="Squiz.WhiteSpace.OperatorSpacing"/> |
| 127 | + <rule ref="Squiz.WhiteSpace.SemicolonSpacing"/> |
| 128 | + <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/> |
| 129 | + <rule ref="Zend.Files.ClosingTag"/> |
| 130 | + <rule ref="Zend.NamingConventions.ValidVariableName"/> |
| 131 | +</ruleset> |
0 commit comments