mirror of
https://github.com/YahnisElsts/plugin-update-checker.git
synced 2025-10-04 02:02:05 +08:00
The main functional change is that PUC will now use shorter HTTP request timeouts when not running inside a Cron task. This is to comply with the WP VIP coding standard that strongly recommends a maximum timeout of 3 seconds. Prompted by #107
21 lines
819 B
XML
21 lines
819 B
XML
<?xml version="1.0"?>
|
|
<ruleset name="PUC_PHPCS_Settings">
|
|
<description>PHPCS settings for Plugin Update Checker</description>
|
|
|
|
<arg name="basepath" value="."/>
|
|
<arg name="warning-severity" value="5"/>
|
|
<arg name="error-severity" value="5"/>
|
|
<arg value="sp"/>
|
|
|
|
<!-- Check the current directory by default -->
|
|
<file>./</file>
|
|
|
|
<!-- Include the WordPress-VIP-Go standard -->
|
|
<rule ref="WordPress-VIP-Go">
|
|
<!-- This library is not exclusive to WP VIP, so it doesn't use vip_safe_wp_remote_get() and such. -->
|
|
<exclude name="WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get" />
|
|
</rule>
|
|
|
|
<!-- Exclude external and third-party libraries -->
|
|
<exclude-pattern type="relative">^vendor/*</exclude-pattern>
|
|
</ruleset>
|