-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
51 lines (46 loc) · 2.63 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
48
49
50
51
<?xml version="1.0"?>
<ruleset name="Silverscreen">
<description>Silverscreen Tours Coding Standards</description>
<!-- Arguments: colors, show progress and show sniff name. -->
<arg value="ps"/>
<arg name="colors"/>
<arg name="extensions" value="php" />
<!-- PHP version -->
<config name="testVersion" value="8.0-"/>
<!-- Exclude files -->
<exclude-pattern>/build/</exclude-pattern>
<exclude-pattern>/dist/</exclude-pattern>
<exclude-pattern>/node_modules/</exclude-pattern>
<exclude-pattern>/vendor/</exclude-pattern>
<rule ref="WordPress">
<exclude name="Generic.CodeAnalysis.AssignmentInCondition.Found"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments"/>
<exclude name="Squiz.Commenting.BlockComment.NoNewLine"/>
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
<exclude name="Squiz.Commenting.FunctionComment.EmptyThrows"/>
<exclude name="Squiz.Commenting.FunctionComment.IncorrectTypeHint"/>
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType"/>
<exclude name="Squiz.Commenting.FunctionCommentThrowTag.WrongNumber"/>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/>
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found"/>
<exclude name="Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure"/>
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found"/>
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames"/>
<exclude name="Universal.Operators.DisallowShortTernary.Found"/>
<exclude name="WordPress.DB.RestrictedFunctions.mysql_mysqli_report"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase"/>
<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped"/>
<exclude name="WordPress.WP.AlternativeFunctions"/>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found"/>
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.NoSpaceAfterFunction"/>
</ruleset>