GithubHelp home page GithubHelp logo

isabella232 / vip-coding-standards Goto Github PK

View Code? Open in Web Editor NEW

This project forked from automattic/vip-coding-standards

0.0 0.0 0.0 1.15 MB

PHP_CodeSniffer ruleset to enforce WordPress.com VIP and VIP Go coding standards

Home Page: https://wpvip.com/documentation/how-to-install-php-code-sniffer-for-wordpress-com-vip/

License: Other

PHP 96.32% JavaScript 2.27% Shell 1.09% CSS 0.33%

vip-coding-standards's Introduction

VIP Coding Standards

This project contains PHP_CodeSniffer (PHPCS) sniffs and rulesets to validate code developed for WordPress VIP.

This project contains two rulesets:

  • WordPressVIPMinimum - for use with projects on the (older) WordPress.com VIP platform.
  • WordPress-VIP-Go - for use with projects on the (newer) VIP Go platform.

These rulesets contain only the rules which are considered to be "errors" and "warnings" according to the WordPress VIP Go documentation.

The rulesets use rules from the WordPress Coding Standards (WPCS) project, as well as the VariableAnalysis standard.

Go to https://docs.wpvip.com/technical-references/code-review/phpcs-report/ to learn about why violations are flagged as errors vs warnings and what the levels mean.

Minimal requirements

Installation

composer require automattic/vipwpcs, or composer g require automattic/vipwpcs if installing globally.

This will install the latest compatible versions of PHPCS, WPCS and VariableAnalysis and register the external standards with PHP_CodeSniffer.

Please refer to the installation instructions for installing PHP_CodeSniffer for WordPress.com VIP for more details.

As of VIPCS version 2.3.0, there is no need to require the PHP_CodeSniffer Standards Composer Installer Plugin anymore as it is now a requirement of VIPCS itself.

Contribution

Please see CONTRIBUTION.md.

License

Licensed under GPL-2.0-or-later.

vip-coding-standards's People

Contributors

david-binda avatar rebeccahum avatar garyjones avatar jrfnl avatar gudmdharalds avatar tomjn avatar sboisvert avatar nickdaugherty avatar vaurdan avatar emrikol avatar hanifn avatar trepmal avatar paulschreiber avatar kevinfodness avatar philipjohn avatar brookedot avatar wpprodigy avatar uxcitizen avatar whyisjake avatar pkevan avatar mikeyarce avatar tessaneedham avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.