{"id":13826550,"url":"https://github.com/automattic/vip-coding-standards","last_synced_at":"2025-05-14T15:06:22.608Z","repository":{"id":11795762,"uuid":"70588100","full_name":"Automattic/VIP-Coding-Standards","owner":"Automattic","description":"PHP_CodeSniffer ruleset to enforce WordPress VIP coding standards.","archived":false,"fork":false,"pushed_at":"2025-03-27T05:53:41.000Z","size":1808,"stargazers_count":245,"open_issues_count":111,"forks_count":41,"subscribers_count":11,"default_branch":"develop","last_synced_at":"2025-04-11T15:23:15.515Z","etag":null,"topics":["php-codesniffer","phpcs","ruleset","vip","wordpress"],"latest_commit_sha":null,"homepage":"https://wpvip.com/documentation/how-to-install-php-code-sniffer-for-wordpress-com-vip/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Automattic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-11T11:50:11.000Z","updated_at":"2025-04-04T03:01:14.000Z","dependencies_parsed_at":"2024-01-07T22:49:48.963Z","dependency_job_id":"deee5938-0200-44fa-abc2-c04657621aed","html_url":"https://github.com/Automattic/VIP-Coding-Standards","commit_stats":{"total_commits":889,"total_committers":29,"mean_commits":"30.655172413793103","dds":0.7559055118110236,"last_synced_commit":"7ed6c5d9320a3d61b873d29561b953734551dac8"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Automattic%2FVIP-Coding-Standards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Automattic%2FVIP-Coding-Standards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Automattic%2FVIP-Coding-Standards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Automattic%2FVIP-Coding-Standards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Automattic","download_url":"https://codeload.github.com/Automattic/VIP-Coding-Standards/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248708441,"owners_count":21148998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php-codesniffer","phpcs","ruleset","vip","wordpress"],"created_at":"2024-08-04T09:01:40.099Z","updated_at":"2025-04-13T11:38:07.027Z","avatar_url":"https://github.com/Automattic.png","language":"PHP","readme":"# VIP Coding Standards\n\nThis project contains [PHP_CodeSniffer (PHPCS) sniffs and rulesets](https://github.com/PHPCSStandards/PHP_CodeSniffer) to validate code developed for [WordPress VIP](https://wpvip.com/).\n\nThis project contains two rulesets:\n\n - `WordPressVIPMinimum` - for use with projects on the (older) WordPress.com VIP platform.\n - `WordPress-VIP-Go` - for use with projects on the (newer) VIP Go platform.\n\nThese rulesets contain only the rules which are considered to be [errors](https://docs.wpvip.com/php_codesniffer/errors/) and [warnings](https://docs.wpvip.com/php_codesniffer/warnings/) according to the WordPress VIP documentation.\n\nThe rulesets use rules from the [WordPress Coding Standards](https://github.com/WordPress/WordPress-Coding-Standards) (WPCS) project, as well as the [VariableAnalysis](https://github.com/sirbrillig/phpcs-variable-analysis) standard.\n\n[Learn](https://docs.wpvip.com/vip-code-analysis-bot/phpcs-report/) about why violations are flagged as errors vs warnings and what the levels mean.\n\n## Minimal requirements\n\n* PHP 5.4+\n* [PHPCS 3.8.0+](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)\n* [PHPCSUtils 1.0.9+](https://github.com/PHPCSStandards/PHPCSUtils)\n* [PHPCSExtra 1.2.1+](https://github.com/PHPCSStandards/PHPCSExtra)\n* [WPCS 3.0.0+](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/releases)\n* [VariableAnalysis 2.11.17+](https://github.com/sirbrillig/phpcs-variable-analysis/releases)\n\n## Installation\n\n[Composer](https://getcomposer.org/) will install the latest compatible versions of PHPCS, PHPCSUtils, PHPCSExtra, WPCS and VariableAnalysis and register the external standards with PHP_CodeSniffer.\n\nPlease refer to the [installation instructions for installing PHP_CodeSniffer for WordPress VIP](https://docs.wpvip.com/how-tos/code-review/php_codesniffer/) for more details.\n\nAs of VIPCS version 2.3.0, there is no need to `require` the [PHP_CodeSniffer Standards Composer Installer Plugin](https://github.com/PHPCSStandards/composer-installer) anymore as it is now a requirement of VIPCS itself. Permission to run the plugin will still need to be granted though when using Composer 2.2 or higher.\n\n### Composer Project-based Installation\n\nTo install the VIP Coding Standards, run the following from the root of your project:\n\n```bash\ncomposer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true\ncomposer require --dev automattic/vipwpcs\n```\n\n### Composer Global Installation\n\nAlternatively, it can be installed standard globally for use across multiple projects:\n\n```bash\ncomposer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true\ncomposer global require --dev automattic/vipwpcs\n```\n\n## Contribution\n\nPlease see [CONTRIBUTION.md](.github/CONTRIBUTING.md).\n\n## License\n\nLicensed under [GPL-2.0-or-later](LICENSE.md).\n","funding_links":[],"categories":["\u003ca id=\"7bf0f5839fb2827fdc1b93ae6ac7f53d\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"32739127f0c38d61b14448c66a797098\"\u003e\u003c/a\u003e嗅探\u0026\u0026Sniff"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomattic%2Fvip-coding-standards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautomattic%2Fvip-coding-standards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomattic%2Fvip-coding-standards/lists"}