Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Commit 4bbb7d7

Browse files
committed
Changed to squiz commenting, updated descs
1 parent 289826e commit 4bbb7d7

File tree

1 file changed

+23
-56
lines changed

1 file changed

+23
-56
lines changed

CodeIgniter4/ruleset.xml

Lines changed: 23 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,41 @@
99
* @license https://github.com/louisl/CodeIgniter4-Standard/blob/master/LICENSE MIT License
1010
* @version Version 1.0.0-beta0005
1111
-->
12-
13-
<!-- <rule ref="Squiz.Commenting.FileComment"/> -->
12+
<!--
13+
Files MUST have a doc block comment.
14+
-->
1415
<rule ref="CodeIgniter4.Commenting.FileComment">
1516
<properties>
1617
<property name="error" value="true"/>
1718
</properties>
1819
</rule>
20+
<!--
21+
Classes MUST have a doc block comment.
22+
-->
1923
<rule ref="Squiz.Commenting.ClassComment"/>
24+
<!--
25+
Properties MUST have a doc block comment.
26+
-->
2027
<rule ref="Squiz.Commenting.VariableComment"/>
28+
<!--
29+
Methods and functions MUST have a doc block comment.
30+
-->
2131
<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+
-->
2436
<rule ref="Squiz.Commenting.FunctionComment.SpacingAfterParamName">
2537
<severity>0</severity>
2638
</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+
-->
3542
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
36-
<!-- <rule ref="Squiz.Commenting.BlockComment"/> -->
43+
<!--
44+
Doc block comment format and spacing.
45+
-->
3746
<rule ref="Generic.Commenting.DocComment"/>
38-
39-
40-
41-
4247
<!--
4348
Tab width is 4 spaces (for phpcs)
4449
-->
@@ -67,41 +72,6 @@
6772
<severity>0</severity>
6873
</rule>
6974
<!--
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-
<!--
10575
User defined constants must be upper case.
10676
-->
10777
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
@@ -127,11 +97,8 @@
12797
<rule ref="CodeIgniter4.Operators.IsNotIdentical"/>
12898
<!--
12999
Warning for discouraged functions.
130-
'error_log',
131100
'print_r',
132-
'var_dump',
133-
'last_query',
134-
'enable_profiler'
101+
'var_dump'
135102
@todo subject to change.
136103
-->
137104
<rule ref="CodeIgniter4.PHP.DiscouragedFunctions"/>

0 commit comments

Comments
 (0)