Skip to content

Commit 7ccb605

Browse files
committed
Add a PHPCS file.
1 parent ad476e3 commit 7ccb605

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

phpcs.xml.dist

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0"?>
2+
3+
<ruleset name="Apigee API Catalog coding standards">
4+
<exclude-pattern>*/.git/*</exclude-pattern>
5+
<exclude-pattern>*/config/*</exclude-pattern>
6+
<exclude-pattern>*/css/*</exclude-pattern>
7+
<exclude-pattern>*/js/*</exclude-pattern>
8+
<exclude-pattern>*/vendor/*</exclude-pattern>
9+
<exclude-pattern>\.md</exclude-pattern>
10+
11+
<rule ref="Drupal"/>
12+
13+
<!-- Copyright header must be visible on all PHP files, including classes in a namespace. -->
14+
<rule ref="Drupal.Commenting.FileComment.NamespaceNoFileDoc">
15+
<severity>0</severity>
16+
</rule>
17+
<!-- Annotation classes still contains snake case variable names. -->
18+
<rule ref="Drupal.NamingConventions.ValidVariableName.LowerCamelName">
19+
<severity>0</severity>
20+
</rule>
21+
<!-- Core doesn't conform to this standard.
22+
@see: https://www.drupal.org/project/coder/issues/2803251
23+
@see: https://www.drupal.org/project/drupal/issues/1158720
24+
-->
25+
<rule ref="Drupal.Commenting.FunctionComment.TypeHintMissing">
26+
<severity>0</severity>
27+
</rule>
28+
29+
</ruleset>

0 commit comments

Comments
 (0)