GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — EngineScript/phpcs.xml at master · EngineScript/EngineScript

Expand file tree

/

phpcs.xml

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
99 lines (84 loc) · 4.51 KB
/

phpcs.xml

Copy path

File metadata and controls

99 lines (84 loc) · 4.51 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="EngineScript Admin Control Panel Coding Standards">
<description>Coding standards for the admin control panel and the admin tools' configuration: PSR-12, read against the current PER Coding Style, with the plugin repositories' general standards.</description>
<!-- Files to check: the panel and the tools' EngineScript configuration -->
<file>config/var/www/admin</file>
<file>rector.php</file>
<file>.php-cs-fixer.dist.php</file>
<!-- Exclude patterns -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/.private/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<!--
PSR-12 is the closest standard PHPCS ships to the PER Coding Style, which supersedes it.
Where a PSR-12 sniff disagrees with PER, PER wins: the sniff is excluded here with the
reason, and PHP-CS-Fixer's @PER-CS set (.php-cs-fixer.dist.php) checks the PER rule.
-->
<rule ref="PSR12"/>
<!-- Universal sniffs from PHPCSExtra. The collection is not a standard and holds contradictory
sniffs, so each one is named. These are the ones WordPress-Core and WordPress-Extra add in
the plugin repositories, minus those that only fit WordPress style (long arrays, no short
ternary, tab alignment). -->
<rule ref="Universal.Arrays.DuplicateArrayKey"/>
<rule ref="Universal.Attributes.BracketSpacing"/>
<rule ref="Universal.Attributes.DisallowAttributeParentheses"/>
<rule ref="Universal.Classes.ModifierKeywordOrder"/>
<rule ref="Universal.Classes.RequireAnonClassParentheses"/>
<rule ref="Universal.CodeAnalysis.ConstructorDestructorReturn"/>
<rule ref="Universal.CodeAnalysis.ForeachUniqueAssignment"/>
<rule ref="Universal.CodeAnalysis.NoDoubleNegative"/>
<rule ref="Universal.CodeAnalysis.NoEchoSprintf"/>
<rule ref="Universal.CodeAnalysis.StaticInFinalClass"/>
<rule ref="Universal.Constants.LowercaseClassResolutionKeyword"/>
<rule ref="Universal.Constants.ModifierKeywordOrder"/>
<rule ref="Universal.Constants.UppercaseMagicConstants"/>
<rule ref="Universal.ControlStructures.DisallowLonelyIf"/>
<rule ref="Universal.Files.SeparateFunctionsFromOO"/>
<rule ref="Universal.Namespaces.DisallowCurlyBraceSyntax"/>
<rule ref="Universal.Namespaces.DisallowDeclarationWithoutName"/>
<rule ref="Universal.Namespaces.OneDeclarationPerFile"/>
<rule ref="Universal.NamingConventions.NoReservedKeywordParameterNames"/>
<rule ref="Universal.Operators.DisallowStandalonePostIncrementDecrement"/>
<rule ref="Universal.Operators.StrictComparisons"/>
<rule ref="Universal.Operators.TypeSeparatorSpacing"/>
<rule ref="Universal.PHP.LowercasePHPTag"/>
<rule ref="Universal.UseStatements.DisallowMixedGroupUse"/>
<rule ref="Universal.UseStatements.KeywordSpacing"/>
<rule ref="Universal.UseStatements.LowercaseFunctionConst"/>
<rule ref="Universal.UseStatements.NoLeadingBackslash"/>
<rule ref="Universal.UseStatements.NoUselessAliases"/>
<rule ref="Universal.WhiteSpace.AnonClassKeywordSpacing"/>
<rule ref="Universal.WhiteSpace.CommaSpacing"/>
<!-- PHPCSExtra standards for additional code quality checks -->
<rule ref="Modernize"/>
<rule ref="NormalizedArrays">
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- Every EngineScript repository writes arrays one way: the short syntax. -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- Unused and undefined variables (the plugin repositories get this through WordPress-VIP-Go). -->
<rule ref="VariableAnalysis"/>
<!-- PHP version compatibility, from the panel's minimum version up. -->
<rule ref="PHPCompatibility">
<include-pattern>*\.php$</include-pattern>
</rule>
<config name="testVersion" value="8.3-"/>
<!-- File formatting -->
<rule ref="Generic.Files.ByteOrderMark"/>
<rule ref="Generic.Files.LineEndings">
<properties>
<property name="eolChar" value="\n"/>
</properties>
</rule>
<!-- Report every message, including those that a standard rates below the default severity of 5. -->
<arg name="severity" value="1"/>
<!-- Show progress -->
<arg value="p"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Use colors in output -->
<arg name="colors"/>
</ruleset>
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.