-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
40 lines (35 loc) · 1.23 KB
/
Copy pathphpcs.xml
File metadata and controls
40 lines (35 loc) · 1.23 KB
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
<?xml version="1.0"?>
<ruleset name="HelloFigma">
<description>PHP CodeSniffer config for Figma to Elementor plugin</description>
<file>.</file>
<exclude-pattern>*/languages/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>.git</exclude-pattern>
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg value="sp"/>
<arg name="extensions" value="php"/>
<rule ref="PSR12"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="160"/>
<property name="absoluteLineLimit" value="200"/>
</properties>
</rule>
<rule ref="WordPress.Security.ValidatedSanitizedInput">
<properties>
<property name="customSanitizingFunctions" type="array">
<element value="sanitize_text_field"/>
<element value="wp_kses_post"/>
</property>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="hello-figma"/>
</property>
</properties>
</rule>
</ruleset>