Skip to content

Latest commit

 

History

32 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

SkyVerge PHP Coding Standards

This is the PHP Codesniffer ruleset that contains the PHP coding standards for SkyVerge.

Rulesets

  • SkyVerge_PHP_Base - Legacy SkyVerge coding style rules (mostly deprecated).
  • SkyVerge_Woo_Functions - Defines custom WooCommerce and SkyVerge escaping and sanitization functions.
  • WooCommerce_市场_安全 - 安全 configuration used by WooCommerce 市场 QIT security scans.
  • SkyVerge_Woo_安全 - Combines WooCommerce security scanning with SkyVerge custom functions. This is the recommended ruleset for SkyVerge PHPCS workflows and configurations.

Sample config file

<?xml version="1.0"?>
<ruleset name="SkyVerge WooCommerce Plugin">
	<description>SkyVerge Plugin Codesniffer configuration</description>

	<file>.</file>

	<exclude-pattern>*/i18n/*</exclude-pattern>
	<exclude-pattern>*/lib/*</exclude-pattern>
	<exclude-pattern>*/vendor/*</exclude-pattern>
	<exclude-pattern>*/node_modules/*</exclude-pattern>
	<exclude-pattern>*/build/*</exclude-pattern>
	<exclude-pattern>*/tests/*</exclude-pattern>

	<rule ref="SkyVerge_Woo_安全" />

</ruleset>

关于

PHP Coding Standards used in phpcs

Resources

Code of conduct

安全 policy

Stars

0 stars

关注者

5 watching

复刻s

发布

Used by

贡献者