GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - php-composter/php-composter-phpcs-wpcs: Check your PHP source code for WPCS compliance before committing.

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 

Repository files navigation

PHP Composter PHPCS WPCS

Check your PHP source code for compliance with WordPress Coding Standards before committing.

This Composer package will start to check your PHP files upon each commit to make sure they comply with the WordPress Coding Standards.

This is a PHP Composter Action.

Uses the wonderful PHP CodeSniffer Project.

Table Of Contents

  • Installation
  • Basic Usage
  • Contributing

Installation

Add the GitHub repository's URL as a package repository to the composer.json file:

"repositories": [
  {
    "type": "vcs",
    "url": "https://github.com/php-composter/php-composter-phpcs-wpcs"
  }
],

Then just add the package as a development requirement to your composer.json, and it should work automagically:

composer require --dev php-composter/php-composter-phpcs-wpcs

Basic Usage

It should just work when you git commit.

Internals

By default, of the 5 different WordPress coding standards (WordPress-VIP, WordPress, WordPress-Extra, WordPress-Docs and WordPress-Core), this one uses the WordPress-Extra one.

If you need to change it, currently you need to edit the Sniff file. Contributions on how to make this dynamic are welcome (.env file, different sniffs for each and choosing the appropriate hooks).

Contributing

All feedback / bug reports / pull requests are welcome.

About

Check your PHP source code for WPCS compliance before committing.

Topics

hacktoberfest

Resources

Readme
Activity
Custom properties

Stars

2 stars

Watchers

2 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.