File tree 4 files changed +7
-3
lines changed
4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- // phpcs:disable Squiz .PHP.DiscouragedFunctions,NeutronStandard.Constants.DisallowDefine
5
+ // phpcs:disable Generic .PHP.ForbiddenFunctions.Found
6
6
7
7
// There are no core functions to read these constants.
8
8
define ('ABSPATH ' , './ ' );
Original file line number Diff line number Diff line change 24
24
<rule ref =" PSR12NeutronRuleset.Strings.ConcatenationUsage.NotAllowed" >
25
25
<exclude-pattern >tests/*</exclude-pattern >
26
26
</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 >
27
33
</ruleset >
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ protected function getRule(): \PHPStan\Rules\Rule
17
17
return new HookCallbackRule ();
18
18
}
19
19
20
- // phpcs:ignore NeutronStandard.Functions.LongFunction.LongFunction
21
20
public function testRule (): void
22
21
{
23
22
// 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
26
26
return new HookDocsRule ($ fileTypeMapper , $ ruleLevelHelper );
27
27
}
28
28
29
- // phpcs:ignore NeutronStandard.Functions.LongFunction.LongFunction
30
29
public function testRule (): void
31
30
{
32
31
// 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