-
Notifications
You must be signed in to change notification settings - Fork 1
/
.phpcs.xml
34 lines (28 loc) · 1.36 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
<?xml version="1.0"?>
<ruleset name="WOVNio">
<arg value="s" /> <!-- show sniff codes in all reports -->
<arg value="p" /> <!-- show progress of the run -->
<arg name="colors" />
<file>./</file>
<exclude-pattern>./vendor</exclude-pattern>
<exclude-pattern>./script</exclude-pattern>
<exclude-pattern>./docker</exclude-pattern>
<exclude-pattern>./src/wovnio/modified_vendor</exclude-pattern>
<rule ref="Internal.Tokenizer.Exception">
<type>error</type>
</rule>
<!-- https://www.php-fig.org/psr/psr-2/ -->
<rule ref="PSR2">
<!-- TODO: Fix indentation before fixing lines too long warnings -->
<exclude name="Generic.Files.LineLength.TooLong" />
<!-- TODO: Fix at last (probably fixed after autoloading setup) -->
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
<exclude name="Generic.ControlStructures.InlineControlStructure.NotAllowed" />
<!-- TODO: src/wovnio/html/HtmlConverter.php is using function name started with underscore -->
<exclude name="PSR2.Methods.MethodDeclaration.Underscore" />
</rule>
<!-- use camelCase everywhere (PSR2 forces it for class members only) -->
<rule ref="Squiz.NamingConventions.ValidFunctionName.NotCamelCaps" />
<!-- FIXME: Squiz.NamingConventions.ValidVariableName.NotCamelCaps too -->
<rule ref="Zend.NamingConventions.ValidVariableName.MemberVarNotCamelCaps" />
</ruleset>