Skip to content

renakdup/using-phpcs-for-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using PHPCS linter in WordPress with WPCS standard

Workflow with PHPCS linter

About project

Example of using PHPCS for WordPress projects.

Explanation

Articles with detailer descriptions how to use PHPCS and WPCS in your project you find by links:

About project

You can get to know with configured WPCS rules for PHPCS linter, and how to use it with WordPress project.
Also, you can get to know how to use PHPCS with Github actions.

Installation

  • Install Composer locally or you can use docker container and run commands inside a container
    docker run --rm -it -v "$PWD":/usr/src/myapp -w /usr/src/myapp pimlab/composer:2.0.0-alpha3-php7.4 sh
    NOTE: if you use php 8 you need to use wp-coding-standards/wpcs:"dev-develop" package, because WPCS sniff doesn't support php 8 yet.

  • Then you can run composer commands inside a container.

About

Example of using PHPCS with WordPress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages