Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Commit b80bb32

Browse files
committed
Ruleset changes
1 parent b7c6fe4 commit b80bb32

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

‎CodeIgniter4/ruleset.xml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<ruleset name="CodeIgniter4">
33
<description>CodeIgniter 4 coding standard for PHP_CodeSniffer</description>
4-
<!--
4+
<!--
55
* CodeIgniter 4 coding standard for PHP_CodeSniffer
66
*
77
* @author Louis Linehan <louis.linehan@gmail.com>
@@ -39,9 +39,21 @@
3939
Methods and functions MUST have a doc block comment.
4040
-->
4141
<rule ref="Squiz.Commenting.FunctionComment"/>
42+
<rule ref="Squiz.Commenting.FunctionComment.ParamCommentNotCapital">
43+
<severity>0</severity>
44+
</rule>
4245
<rule ref="Squiz.Commenting.FunctionComment.ParamCommentFullStop">
4346
<severity>0</severity>
4447
</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>
4557
<!--
4658
Doc block comment alignment.
4759
-->
@@ -68,10 +80,10 @@
6880
-->
6981
<arg name="tab-width" value="4"/>
7082
<!--
71-
Ignore application/Views/ directory.
83+
Ignore application/Views/ directory.
7284
Ignore application/ThirdParty/ directory.
7385
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
7587
could contain all sorts of indentation, alignments and scopes.
7688
@todo subject to change.
7789
-->
@@ -213,7 +225,7 @@
213225
-->
214226
<rule ref="Generic.Files.LineLength">
215227
<properties>
216-
<property name="lineLimit" value="120"/>
228+
<property name="lineLimit" value="250"/>
217229
<property name="absoluteLineLimit" value="0"/>
218230
</properties>
219231
</rule>
@@ -242,7 +254,7 @@
242254
Checks there are no blank lines before a function closing brace.
243255
-->
244256
<rule ref="CodeIgniter4.WhiteSpace.FunctionClosingBraceSpace"/>
245-
<!--
257+
<!--
246258
The keyword elseif SHOULD be used instead of else if so that all control
247259
keywords look like single words.
248260
-->

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /