File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 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 >
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 >
You can’t perform that action at this time.
0 commit comments