PluginProbe
Insert Pages / 3.8
Insert Pages v3.8
3.11.5 trunk 1.4 2.4 2.5 2.6 2.7 2.7.1 2.7.2 2.8 2.9 2.9.1 3.0 3.0.1 3.0.2 3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 All 79 releases
insert-pages / phpcs.xml

phpcs.xml in Insert Pages 3.8, at phpcs.xml

35 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?xml version="1.0"?>
2 <ruleset name="WordPress">
3 <description>WordPress Coding Standards</description>
4
5 <!-- Use WordPress as a base -->
6 <rule ref="WordPress">
7 <exclude name="WordPress.Arrays.MultipleStatementAlignment" />
8 <exclude name="Generic.Formatting.MultipleStatementAlignment" />
9
10 <!-- Allow opening and closing braces for functions and classes to be on the same line -->
11 <exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterOpen"/>
12 <exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine"/>
13 <exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine"/>
14 <exclude name="Squiz.WhiteSpace.ScopeClosingBrace"/>
15
16 <!-- Disable newline after opening brace -->
17 <exclude name="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace"/>
18
19 <!-- Allow multiple PHP statements in the same line (usually in template files) -->
20 <exclude name="Generic.Formatting.DisallowMultipleStatements.SameLine"/>
21
22 <!-- Disable PSR-2 indentation rules that are buggy with 2 spaces -->
23 <exclude name="PSR2.ControlStructures.SwitchDeclaration.BreakIndent"/>
24 <exclude name="PSR2.Methods.FunctionCallSignature.Indent"/>
25
26 <!-- Disable output escaping rules. -->
27 <exclude name="WordPress.Security.EscapeOutput.OutputNotEscaped"/>
28
29 <!-- Disable picky rules. -->
30 <exclude name="Squiz.PHP.EmbeddedPhp"/>
31 <exclude name="WordPress.Files.FileName"/>
32 <exclude name="WordPress.WP.DiscouragedFunctions"/>
33 </rule>
34 </ruleset>
35