Skip to content

Commit 6d32cc2

Browse files
committed
Add SSP-specific sniffs
1 parent 14c4840 commit 6d32cc2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

phpcs.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@
2222

2323
<!-- This is the rule we inherit from. If you want to exlude some specific rules, see the docs on how to do that -->
2424
<rule ref="PSR12"/>
25-
<rule ref="Generic.PHP.RequireStrictTypes" />
25+
<!-- <rule ref="vendor/simplesamlphp/simplesamlphp-test-framework/phpcs-simplesamlphp.xml"/> -->
26+
27+
<!-- Enforce the use of trailing commas -->
28+
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma" />
29+
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall" />
30+
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse" />
31+
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration" />
32+
2633
<rule ref="Generic.WhiteSpace.ScopeIndent">
2734
<properties>
2835
<property name="exact" value="true" />

0 commit comments

Comments
 (0)