Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,6 @@
<!-- Do not allow ambiguous conditions. -->
<rule ref="Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence"/>

<!-- The testing bootstrap file uses string concats to stop IDEs seeing the class aliases -->
<rule ref="Generic.Strings.UnnecessaryStringConcat">
<exclude-pattern>tests/bootstrap\.php</exclude-pattern>
</rule>

<!-- This test file specifically *needs* Windows line endings for testing purposes. -->
<rule ref="Generic.Files.LineEndings.InvalidEOLChar">
<exclude-pattern>tests/Core/Tokenizers/PHP/*WinTest\.php</exclude-pattern>
Expand All @@ -187,4 +182,17 @@
<!-- Prevent conflict with function spacing sniff. -->
<exclude-pattern>/requirements\.php</exclude-pattern>
</rule>

<!-- Use select error codes from the Squiz FunctionComment sniff, which shouldn't conflict with the PEAR sniff. -->
<rule ref="Squiz.Commenting.FunctionComment.InvalidReturnVoid"/>
<rule ref="Squiz.Commenting.FunctionComment.InvalidNoReturn"/>
<rule ref="Squiz.Commenting.FunctionComment.InvalidReturnNotVoid"/>
<rule ref="Squiz.Commenting.FunctionComment.ThrowsNotCapital"/>
<rule ref="Squiz.Commenting.FunctionComment.ThrowsNoFullStop"/>
<rule ref="Squiz.Commenting.FunctionComment.InvalidReturnVoid"/>
<rule ref="Squiz.Commenting.FunctionComment.IncorrectTypeHint"/>
<rule ref="Squiz.Commenting.FunctionComment.InvalidTypeHint"/>
<rule ref="Squiz.Commenting.FunctionComment.ParamNameUnexpectedAmpersandPrefix"/>
<rule ref="Squiz.Commenting.FunctionComment.ParamCommentNotCapital"/>

</ruleset>
Loading