PluginProbe ʕ •ᴥ•ʔ
LiteSpeed Cache / 7.8
LiteSpeed Cache v7.8
trunk 1.0.15 1.9.1.1 2.9.9.2 3.6.4 4.6 5.7.0.1 6.5.4 7.0.0.1 7.0.1 7.1 7.2 7.3 7.3.0.1 7.4 7.5 7.5.0.1 7.6 7.6.1 7.6.2 7.7 7.8 7.8.0.1 7.8.1
litespeed-cache / phpcs.xml.dist
litespeed-cache Last commit date
assets 3 months ago cli 3 months ago data 3 months ago lang 3 months ago lib 3 months ago src 3 months ago thirdparty 3 months ago tpl 3 months ago LICENSE 3 months ago autoload.php 3 months ago changelog.txt 3 months ago composer.json 3 months ago composer.lock 3 months ago guest.vary.php 3 months ago litespeed-cache.php 3 months ago package-lock.json 3 months ago package.json 3 months ago phpcs.ruleset.xml 3 months ago phpcs.xml.dist 3 months ago qc-ping.txt 3 months ago readme.txt 3 months ago security.md 3 months ago typos.toml 3 months ago
phpcs.xml.dist
63 lines
1 <?xml version="1.0"?>
2 <ruleset name="LiteSpeed Cache Coding Standards">
3 <description>Apply LiteSpeed Cache Coding Standards to all plugin files</description>
4
5 <!--
6 #############################################################################
7 COMMAND LINE ARGUMENTS
8 https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset
9 #############################################################################
10 -->
11
12 <!-- Only scan PHP files -->
13 <arg name="extensions" value="php"/>
14
15 <!-- Cache scan results to use for unchanged files on future scans -->
16 <arg name="cache" value=".cache/phpcs.json"/>
17
18 <!-- Set memory limit to 512M
19 Ref: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#specifying-phpini-settings
20 -->
21 <ini name="memory_limit" value="512M"/>
22
23 <!-- Remove unwanted prefix from filepaths -->
24 <arg name="basepath" value="./"/>
25
26 <!-- Check max 20 files in parallel -->
27 <arg name="parallel" value="20"/>
28
29 <!-- Show sniff codes in all reports -->
30 <arg value="ps"/>
31
32 <!--
33 #############################################################################
34 FILE SELECTION
35 Set which files will be subject to the scans executed using this ruleset.
36 #############################################################################
37 -->
38
39 <file>.</file>
40
41 <!-- Exclude any wordpress folder in the current directory -->
42 <exclude-pattern type="relative">^wordpress/*</exclude-pattern>
43
44 <!-- Directories and third-party library exclusions -->
45 <exclude-pattern>/node_modules/*</exclude-pattern>
46 <exclude-pattern>/vendor/*</exclude-pattern>
47
48 <!--
49 #############################################################################
50 SET UP THE RULESET
51 #############################################################################
52 -->
53 <!-- Check PHP v7.2 and all newer versions -->
54 <config name="testVersion" value="7.2-"/>
55
56 <rule ref="PHPCompatibility">
57 <!-- Exclude false positives -->
58 <!-- array_key_firstFound is defined in lib/php-compatibility.func.php -->
59 <exclude name="PHPCompatibility.FunctionUse.NewFunctions.array_key_firstFound" />
60 </rule>
61
62 </ruleset>
63