Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

kirbelots/setup-wordpress-phpcs

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom PHP CodeSniffer Ruleset

A lightweight phpcs.xml configuration extending "WordPress-Extra" with some preferences (short arrays, no Yoda conditions, flexible file naming, etc).

Prerequisites

This ruleset requires the WordPress Coding Standards (WPCS).

Usage

  • Install the WPCS package.
  • Place the phpcs.xml file in the project root.
./vendor/bin/phpcs .
./vendor/bin/phpcbf .

License

This is free and unencumbered software released into the public domain. See LICENSE for details.

About

Opinionated WordPress PHPCS config: short arrays, no Yoda conditions, relaxed naming, etc.

Topics

Resources

Stars

Watchers

Forks

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.