GithubHelp home page GithubHelp logo

jenkoian / vip-coding-standards Goto Github PK

View Code? Open in Web Editor NEW

This project forked from automattic/vip-coding-standards

0.0 2.0 0.0 900 KB

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 98.14% JavaScript 0.72% Shell 0.82% CSS 0.32%

vip-coding-standards's Introduction

VIP Coding Standards

This project contains PHP_CodeSniffer (PHPCS) sniffs and rulesets to validate code developed for WordPress.com 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.

Go to https://wpvip.com/documentation/phpcs-review-feedback/ 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 and WPCS.

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

We recommend the PHP_CodeSniffer Standards Composer Installer Plugin, which handles the registration of all of the installed standards, so there is no need to set the installed_paths config value manually, for single or multiple standards.

Alternatively, you should register the standard to PHPCS by appending the VIPCS directory to the end of the installed paths. e.g.

phpcs --config-set installed_paths [/path/to/wpcsstandard],[path/to/vipcsstandard],etc

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 gudmdharalds avatar tomjn avatar sboisvert avatar nickdaugherty avatar vaurdan avatar emrikol avatar hanifn avatar trepmal avatar paulschreiber avatar philipjohn avatar brookedot avatar wpprodigy avatar uxcitizen avatar whyisjake avatar pkevan avatar mikeyarce avatar tessaneedham avatar

Watchers

James Cloos avatar  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.