|
12 | 12 | <rule ref="Drupal.CSS"/>
|
13 | 13 | <rule ref="Drupal.Classes"/>
|
14 | 14 | <rule ref="Drupal.Commenting">
|
15 |
| - <exclude name="Drupal.Commenting.DocComment.MissingShort"/> |
16 |
| - <!-- TagsNotGrouped has false positives for @code/@endcode. See |
17 |
| - https://www.drupal.org/node/2502837 --> |
18 |
| - <exclude name="Drupal.Commenting.DocComment.TagsNotGrouped"/> |
19 |
| - <!-- We have to document hooks in a non-standard way in order to be |
| 15 | + <exclude name="Drupal.Commenting.DocComment.MissingShort"/> |
| 16 | + <!-- TagsNotGrouped has false positives for @code/@endcode. See |
| 17 | + https://www.drupal.org/node/2502837 --> |
| 18 | + <exclude name="Drupal.Commenting.DocComment.TagsNotGrouped"/> |
| 19 | + <!-- We have to document hooks in a non-standard way in order to be |
20 | 20 | informative -->
|
21 |
| - <exclude name="Drupal.Commenting.HookComment.HookParamDoc"/> |
22 |
| - <exclude name="Drupal.Commenting.HookComment.HookReturnDoc"/> |
| 21 | + <exclude name="Drupal.Commenting.HookComment.HookParamDoc"/> |
| 22 | + <exclude name="Drupal.Commenting.HookComment.HookReturnDoc"/> |
23 | 23 | </rule>
|
24 | 24 | <rule ref="Drupal.ControlStructures"/>
|
25 | 25 | <rule ref="Drupal.Files"/>
|
|
30 | 30 | <rule ref="Drupal.Semantics"/>
|
31 | 31 | <rule ref="Drupal.Strings"/>
|
32 | 32 | <rule ref="Drupal.WhiteSpace"/>
|
| 33 | + <rule ref="Drupal.Files.TxtFileLineLength.TooLong"/> |
33 | 34 |
|
34 |
| - <rule ref="Generic.Files.LineEndings"/> |
| 35 | + <rule ref="Generic.CodeAnalysis.UselessOverridingMethod"> |
| 36 | + <!-- We exclude this rule so that we can demonstrate where to add your own |
| 37 | + validation code to a form. --> |
| 38 | + <exclude name="Generic.CodeAnalysis.UselessOverridingMethod.Found"/> |
| 39 | + </rule> |
| 40 | + <rule ref="Generic.Files.LineEndings"> |
| 41 | + <properties> |
| 42 | + <property name="eolChar" value="\n"/> |
| 43 | + </properties> |
| 44 | + </rule> |
35 | 45 | <rule ref="Generic.Formatting.SpaceAfterCast"/>
|
36 | 46 | <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
|
37 |
| - <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"/> |
| 47 | + <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"> |
| 48 | + <properties> |
| 49 | + <property name="checkClosures" value="true"/> |
| 50 | + </properties> |
| 51 | + </rule> |
38 | 52 | <rule ref="Generic.PHP.DeprecatedFunctions"/>
|
39 | 53 | <rule ref="Generic.PHP.DisallowShortOpenTag"/>
|
40 | 54 | <rule ref="Generic.PHP.LowerCaseKeyword"/>
|
|
44 | 58 | <rule ref="MySource.Debug.DebugCode"/>
|
45 | 59 |
|
46 | 60 | <rule ref="PSR2.Classes.PropertyDeclaration"/>
|
| 61 | + <rule ref="PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter"/> |
| 62 | + <rule ref="PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse"/> |
47 | 63 |
|
48 | 64 | <rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
|
49 | 65 | <rule ref="Squiz.CSS.ClassDefinitionOpeningBraceSpace"/>
|
50 | 66 | <rule ref="Squiz.CSS.ColonSpacing"/>
|
51 | 67 | <rule ref="Squiz.CSS.DisallowMultipleStyleDefinitions"/>
|
52 | 68 | <rule ref="Squiz.CSS.EmptyClassDefinition"/>
|
53 | 69 | <rule ref="Squiz.CSS.EmptyStyleDefinition"/>
|
| 70 | + <rule ref="Squiz.CSS.Indentation"> |
| 71 | + <properties> |
| 72 | + <property name="indent" value="2"/> |
| 73 | + </properties> |
| 74 | + </rule> |
54 | 75 | <rule ref="Squiz.CSS.MissingColon"/>
|
55 | 76 | <rule ref="Squiz.CSS.SemicolonSpacing"/>
|
56 | 77 | <rule ref="Squiz.Commenting.DocCommentAlignment"/>
|
57 | 78 | <rule ref="Squiz.ControlStructures.ForEachLoopDeclaration"/>
|
58 | 79 | <rule ref="Squiz.ControlStructures.ForLoopDeclaration"/>
|
| 80 | + <rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing"> |
| 81 | + <properties> |
| 82 | + <property name="equalsSpacing" value="1"/> |
| 83 | + </properties> |
| 84 | + </rule> |
59 | 85 | <rule ref="Squiz.PHP.LowercasePHPFunctions"/>
|
60 | 86 | <rule ref="Squiz.PHP.NonExecutableCode"/>
|
61 | 87 | <rule ref="Squiz.Scope.MethodScope"/>
|
| 88 | + <rule ref="Squiz.Strings.ConcatenationSpacing"> |
| 89 | + <properties> |
| 90 | + <property name="spacing" value="1"/> |
| 91 | + <property name="ignoreNewlines" value="true"/> |
| 92 | + </properties> |
| 93 | + </rule> |
| 94 | + <rule ref="Squiz.WhiteSpace.FunctionSpacing"> |
| 95 | + <properties> |
| 96 | + <property name="spacing" value="1"/> |
| 97 | + </properties> |
| 98 | + </rule> |
62 | 99 | <rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/>
|
63 | 100 |
|
64 | 101 | <rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
|
|
0 commit comments