Skip to content

Commit d4a1d6d

Browse files
committed
Exclude tests folder for CamelCaps method name and return type hint.
1 parent 9ecf2eb commit d4a1d6d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

FigLabCodingStandard/ruleset.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,18 @@
9393
<exclude-pattern>./database/migrations/*</exclude-pattern>
9494
<exclude-pattern>./modules/*/database/migrations/*</exclude-pattern>
9595
</rule>
96+
97+
<!-- Methods in test classes are written in snake_case style. -->
98+
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
99+
<exclude-pattern>./tests*</exclude-pattern>
100+
<exclude-pattern>./modules/*/tests/*</exclude-pattern>
101+
</rule>
102+
103+
<!-- Return type hints should not be forced in the methods of test classes. -->
104+
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint">
105+
<exclude-pattern>./tests*</exclude-pattern>
106+
<exclude-pattern>./modules/*/tests/*</exclude-pattern>
107+
<exclude-pattern>./routes/*</exclude-pattern>
108+
<exclude-pattern>./modules/*/routes/*</exclude-pattern>
109+
</rule>
96110
</ruleset>

0 commit comments

Comments
 (0)