Skip to content

kirbelots/setup-wordpress-phpcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

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

License

Stars

Watchers

Forks

Contributors