-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml
37 lines (33 loc) · 1.93 KB
/
phpcs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0"?>
<ruleset name="Coding standards">
<description>Coding standards</description>
<arg name="colors"/>
<arg name="extensions" value="php,css"/>
<file>./assets/</file>
<file>./includes/</file>
<file>./src/</file>
<file>./templates/</file>
<file>./tests/</file>
<file>./wporg-gp-translation-events.php</file>
<file>./themes/</file>
<exclude-pattern>^.*/themes/*/style.css</exclude-pattern>
<rule ref="WordPress">
<properties>
<property name="custom_capabilities[]" value="manage_translation_events,create_translation_event,view_translation_event,edit_translation_event,trash_translation_event,delete_translation_event,edit_translation_event_attendees,edit_translation_event_title,edit_translation_event_description,edit_translation_event_start,edit_translation_event_end,edit_translation_event_timezone,edit_translation_event_attendance_mode"/>
</properties>
<exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen"/>
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment"/>
<exclude name="Squiz.Commenting.ClassComment.Missing"/>
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
<exclude name="Squiz.Commenting.VariableComment.Missing"/>
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag"/>
<exclude name="Squiz.Commenting.FunctionComment.EmptyThrows"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="Generic.Files.OneObjectStructurePerFile.MultipleFound"/>
<exclude name="Universal.Operators.DisallowShortTernary.Found"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<exclude name="PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter"/>
</rule>
</ruleset>