Skip to content

Commit 3988309

Browse files
authored
Merge pull request #1252 from PHPCSStandards/phpcs-4.x/feature/155-normalize-some-code-style-rules-9
CS: normalize code style rules [9]
2 parents 4a04976 + dc5bced commit 3988309

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

phpcs.xml.dist

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,6 @@
157157
<!-- Do not allow ambiguous conditions. -->
158158
<rule ref="Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence"/>
159159

160-
<!-- The testing bootstrap file uses string concats to stop IDEs seeing the class aliases -->
161-
<rule ref="Generic.Strings.UnnecessaryStringConcat">
162-
<exclude-pattern>tests/bootstrap\.php</exclude-pattern>
163-
</rule>
164-
165160
<!-- This test file specifically *needs* Windows line endings for testing purposes. -->
166161
<rule ref="Generic.Files.LineEndings.InvalidEOLChar">
167162
<exclude-pattern>tests/Core/Tokenizers/PHP/*WinTest\.php</exclude-pattern>
@@ -187,4 +182,17 @@
187182
<!-- Prevent conflict with function spacing sniff. -->
188183
<exclude-pattern>/requirements\.php</exclude-pattern>
189184
</rule>
185+
186+
<!-- Use select error codes from the Squiz FunctionComment sniff, which shouldn't conflict with the PEAR sniff. -->
187+
<rule ref="Squiz.Commenting.FunctionComment.InvalidReturnVoid"/>
188+
<rule ref="Squiz.Commenting.FunctionComment.InvalidNoReturn"/>
189+
<rule ref="Squiz.Commenting.FunctionComment.InvalidReturnNotVoid"/>
190+
<rule ref="Squiz.Commenting.FunctionComment.ThrowsNotCapital"/>
191+
<rule ref="Squiz.Commenting.FunctionComment.ThrowsNoFullStop"/>
192+
<rule ref="Squiz.Commenting.FunctionComment.InvalidReturnVoid"/>
193+
<rule ref="Squiz.Commenting.FunctionComment.IncorrectTypeHint"/>
194+
<rule ref="Squiz.Commenting.FunctionComment.InvalidTypeHint"/>
195+
<rule ref="Squiz.Commenting.FunctionComment.ParamNameUnexpectedAmpersandPrefix"/>
196+
<rule ref="Squiz.Commenting.FunctionComment.ParamCommentNotCapital"/>
197+
190198
</ruleset>

0 commit comments

Comments
 (0)