File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- // phpcs:disable Squiz .PHP.DiscouragedFunctions,NeutronStandard.Constants.DisallowDefine
5+ // phpcs:disable Generic .PHP.ForbiddenFunctions.Found
66
77// There are no core functions to read these constants.
88define ('ABSPATH ' , './ ' );
Original file line number Diff line number Diff line change 2424 <rule ref =" PSR12NeutronRuleset.Strings.ConcatenationUsage.NotAllowed" >
2525 <exclude-pattern >tests/*</exclude-pattern >
2626 </rule >
27+
28+ <!-- Allow long functions in test cases -->
29+ <rule ref =" SlevomatCodingStandard.Functions.FunctionLength.FunctionLength" >
30+ <exclude-pattern >tests/HookDocsRuleTest.php</exclude-pattern >
31+ <exclude-pattern >tests/HookCallbackRuleTest.php</exclude-pattern >
32+ </rule >
2733</ruleset >
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ protected function getRule(): \PHPStan\Rules\Rule
1717 return new HookCallbackRule ();
1818 }
1919
20- // phpcs:ignore NeutronStandard.Functions.LongFunction.LongFunction
2120 public function testRule (): void
2221 {
2322 // first argument: path to the example file that contains some errors that should be reported by HookCallbackRule
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ protected function getRule(): Rule
2626 return new HookDocsRule ($ fileTypeMapper , $ ruleLevelHelper );
2727 }
2828
29- // phpcs:ignore NeutronStandard.Functions.LongFunction.LongFunction
3029 public function testRule (): void
3130 {
3231 // first argument: path to the example file that contains some errors that should be reported by HookDocsRule
You can’t perform that action at this time.
0 commit comments