|
9 | 9 | * @license https://github.com/louisl/CodeIgniter4-Standard/blob/master/LICENSE MIT License |
10 | 10 | * @version Version 1.0.0-beta0005 |
11 | 11 | --> |
12 | | - |
13 | | - <!-- <rule ref="Squiz.Commenting.FileComment"/> --> |
| 12 | + <!-- |
| 13 | + Files MUST have a doc block comment. |
| 14 | + --> |
14 | 15 | <rule ref="CodeIgniter4.Commenting.FileComment"> |
15 | 16 | <properties> |
16 | 17 | <property name="error" value="true"/> |
17 | 18 | </properties> |
18 | 19 | </rule> |
| 20 | + <!-- |
| 21 | + Classes MUST have a doc block comment. |
| 22 | + --> |
19 | 23 | <rule ref="Squiz.Commenting.ClassComment"/> |
| 24 | + <!-- |
| 25 | + Properties MUST have a doc block comment. |
| 26 | + --> |
20 | 27 | <rule ref="Squiz.Commenting.VariableComment"/> |
| 28 | + <!-- |
| 29 | + Methods and functions MUST have a doc block comment. |
| 30 | + --> |
21 | 31 | <rule ref="Squiz.Commenting.FunctionComment"/> |
22 | | - |
23 | | - <!-- @todo broke it doesn't like multiline comments (contact squiz) --> |
| 32 | + <!-- |
| 33 | + @todo remove this once it works - doesn't like multi-line param |
| 34 | + comments. |
| 35 | + --> |
24 | 36 | <rule ref="Squiz.Commenting.FunctionComment.SpacingAfterParamName"> |
25 | 37 | <severity>0</severity> |
26 | 38 | </rule> |
27 | | - |
28 | | - <rule ref="Squiz.Commenting.FunctionComment.ParamCommentFullStop"> |
29 | | - <severity>0</severity> |
30 | | - </rule> |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
| 39 | + <!-- |
| 40 | + Doc block comment alignment. |
| 41 | + --> |
35 | 42 | <rule ref="Squiz.Commenting.DocCommentAlignment"/> |
36 | | - <!-- <rule ref="Squiz.Commenting.BlockComment"/> --> |
| 43 | + <!-- |
| 44 | + Doc block comment format and spacing. |
| 45 | + --> |
37 | 46 | <rule ref="Generic.Commenting.DocComment"/> |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | 47 | <!-- |
43 | 48 | Tab width is 4 spaces (for phpcs) |
44 | 49 | --> |
|
67 | 72 | <severity>0</severity> |
68 | 73 | </rule> |
69 | 74 | <!-- |
70 | | - Files MUST have a File doc block comment. |
71 | | - - Checks tag order, format and spacing. |
72 | | - --> |
73 | | - <!-- <rule ref="Generic.Commenting.DocComment"/> ... --> |
74 | | - <!-- |
75 | | - Functions MUST have a doc block comment. |
76 | | - - Checks tag order, format and spacing. |
77 | | - --> |
78 | | - <!-- <rule ref="PEAR.Commenting.FunctionComment"/> ... --> |
79 | | - <!-- |
80 | | - Checks doc block alignment. |
81 | | - --> |
82 | | - <!-- <rule ref="Squiz.Commenting.DocCommentAlignment"/> ... --> |
83 | | - <!-- |
84 | | - Checks file doc block comment required tags, and order, format and spacing. |
85 | | - --> |
86 | | - <!-- <rule ref="CodeIgniter4.Commenting.FileComment"> |
87 | | - <properties> |
88 | | - <property name="error" value="false"/> |
89 | | - </properties> |
90 | | - </rule> ... --> |
91 | | - <!-- |
92 | | - Checks class doc block comment required tags, and order, format and spacing. |
93 | | - --> |
94 | | - <!-- <rule ref="CodeIgniter4.Commenting.ClassComment"/> ... --> |
95 | | - <!-- |
96 | | - For variables that have a comment. |
97 | | - - Checks tag order, format and spacing. |
98 | | - --> |
99 | | - <!-- <rule ref="Squiz.Commenting.VariableComment"> |
100 | | - <properties> |
101 | | - <property name="error" value="false"/> |
102 | | - </properties> |
103 | | - </rule> ... --> |
104 | | - <!-- |
105 | 75 | User defined constants must be upper case. |
106 | 76 | --> |
107 | 77 | <rule ref="Generic.NamingConventions.UpperCaseConstantName"/> |
|
127 | 97 | <rule ref="CodeIgniter4.Operators.IsNotIdentical"/> |
128 | 98 | <!-- |
129 | 99 | Warning for discouraged functions. |
130 | | - 'error_log', |
131 | 100 | 'print_r', |
132 | | - 'var_dump', |
133 | | - 'last_query', |
134 | | - 'enable_profiler' |
| 101 | + 'var_dump' |
135 | 102 | @todo subject to change. |
136 | 103 | --> |
137 | 104 | <rule ref="CodeIgniter4.PHP.DiscouragedFunctions"/> |
|
0 commit comments