|
1 | 1 | <?xml version="1.0" encoding="UTF-8" ?> |
2 | 2 | <ruleset name="CodeIgniter4"> |
3 | 3 | <description>CodeIgniter 4 coding standard for PHP_CodeSniffer</description> |
4 | | - <!-- |
| 4 | + <!-- |
5 | 5 | * CodeIgniter 4 coding standard for PHP_CodeSniffer |
6 | 6 | * |
7 | 7 | * @author Louis Linehan <louis.linehan@gmail.com> |
|
39 | 39 | Methods and functions MUST have a doc block comment. |
40 | 40 | --> |
41 | 41 | <rule ref="Squiz.Commenting.FunctionComment"/> |
| 42 | + <rule ref="Squiz.Commenting.FunctionComment.ParamCommentNotCapital"> |
| 43 | + <severity>0</severity> |
| 44 | + </rule> |
42 | 45 | <rule ref="Squiz.Commenting.FunctionComment.ParamCommentFullStop"> |
43 | 46 | <severity>0</severity> |
44 | 47 | </rule> |
| 48 | + <rule ref="Squiz.Commenting.FunctionComment.EmptyThrows"> |
| 49 | + <severity>0</severity> |
| 50 | + </rule> |
| 51 | + <rule ref="Squiz.Commenting.FunctionComment.ThrowsNotCapital"> |
| 52 | + <severity>0</severity> |
| 53 | + </rule> |
| 54 | + <rule ref="Squiz.Commenting.FunctionComment.ThrowsNoFullStop"> |
| 55 | + <severity>0</severity> |
| 56 | + </rule> |
45 | 57 | <!-- |
46 | 58 | Doc block comment alignment. |
47 | 59 | --> |
|
68 | 80 | --> |
69 | 81 | <arg name="tab-width" value="4"/> |
70 | 82 | <!-- |
71 | | - Ignore application/Views/ directory. |
| 83 | + Ignore application/Views/ directory. |
72 | 84 | Ignore application/ThirdParty/ directory. |
73 | 85 | Ignore system/ThirdParty/ directory. |
74 | | - There could be a mix of styles in ThirdParty and View files |
| 86 | + There could be a mix of styles in ThirdParty and View files |
75 | 87 | could contain all sorts of indentation, alignments and scopes. |
76 | 88 | @todo subject to change. |
77 | 89 | --> |
|
213 | 225 | --> |
214 | 226 | <rule ref="Generic.Files.LineLength"> |
215 | 227 | <properties> |
216 | | - <property name="lineLimit" value="120"/> |
| 228 | + <property name="lineLimit" value="250"/> |
217 | 229 | <property name="absoluteLineLimit" value="0"/> |
218 | 230 | </properties> |
219 | 231 | </rule> |
|
242 | 254 | Checks there are no blank lines before a function closing brace. |
243 | 255 | --> |
244 | 256 | <rule ref="CodeIgniter4.WhiteSpace.FunctionClosingBraceSpace"/> |
245 | | - <!-- |
| 257 | + <!-- |
246 | 258 | The keyword elseif SHOULD be used instead of else if so that all control |
247 | 259 | keywords look like single words. |
248 | 260 | --> |
|
0 commit comments