forked from UbuntuEvangelist/GlotPress-WP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
47 lines (39 loc) · 1.83 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
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for GlotPress">
<rule ref="WordPress-Core">
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_file_get_contents" />
</rule>
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra">
<exclude name="WordPress.XSS.EscapeOutput.UnsafePrintingFunction" />
</rule>
<rule ref="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing">
<severity>0</severity>
</rule>
<rule ref="WordPress.XSS.EscapeOutput">
<properties>
<property name="customAutoEscapedFunctions" value="gp_radio_buttons=>gp_radio_buttons,gp_select=>gp_select,gp_projects_dropdown=>gp_projects_dropdown,gp_link_glossary_delete_get=>gp_link_glossary_delete_get,gp_link_set_delete_get=>gp_link_set_delete_get,gp_link_get=>gp_link_get,gp_link=>gp_link,__=>__,gp_js_focus_on=>gp_js_focus_on,gp_translation_row_classes=>gp_translation_row_classes,gp_pagination=>gp_pagination" type="array" />
</properties>
</rule>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<exclude-pattern>/gp-templates/*</exclude-pattern>
<exclude-pattern>/locales/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" value="glotpress" />
</properties>
</rule>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Allow invoking just `phpcs` on command line without assuming STDIN for file input. -->
<arg name="extensions" value="php"/>
<file>.</file>
<exclude-pattern>/tests/*</exclude-pattern>
<exclude-pattern>/dev-lib/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/locales/*</exclude-pattern>
</ruleset>