-
Notifications
You must be signed in to change notification settings - Fork 29
/
phpcs.xml
24 lines (20 loc) · 998 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="OptimizelyPSR2">
<!-- description for custom ruleset -->
<description>A custom coding standard for Optimizely PHP-SDK based on PSR2</description>
<!-- If no files or directories are specified on commandline, these files will be sniffed -->
<file>./src</file>
<file>./tests</file>
<!-- Exclude patterns for files to be excluded from sniffing -->
<!-- <exclude-pattern>./tests/EventTests/*</exclude-pattern> -->
<!-- Embed command line arguments in config file. -->
<arg name="tab-width" value="4"/>
<!-- To exclude any rule sniff, get sniff name by running phpcs with -s switch -->
<rule ref="PSR2">
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
<exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/>
</rule >
</ruleset>