https://github.com/oefenweb/wordpress-codesniffer
Modified version of the Wordpress Code Sniffer
https://github.com/oefenweb/wordpress-codesniffer
codesniffer phpcs sniffer wordpress
Last synced: 5 months ago
JSON representation
Modified version of the Wordpress Code Sniffer
- Host: GitHub
- URL: https://github.com/oefenweb/wordpress-codesniffer
- Owner: Oefenweb
- License: mit
- Created: 2016-06-10T08:35:28.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-15T11:34:40.000Z (almost 10 years ago)
- Last Synced: 2025-01-23T02:44:27.901Z (over 1 year ago)
- Topics: codesniffer, phpcs, sniffer, wordpress
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Oefenweb Code Sniffer for Wordpress
This code works with [phpcs](https://github.com/squizlabs/PHP_CodeSniffer) and checks code against the coding standards used at Oefenweb.
## Installation
It's generally recommended to install these code sniffs with `composer`:
```sh
mkdir WordpressOefenweb && cd $_ && composer require oefenweb/wordpress-codesniffer=dev-master;
```
```sh
vendor/bin/phpcs \
--config-set installed_paths "${PWD}/vendor/wp-coding-standards/wpcs,${PWD}/vendor/oefenweb/wordpress-codesniffer" \
;
```
This lets `phpcs` know where to find your new sniffs. Ensure that you do not overwrite any existing `installed_paths` value.
## Usage
```sh
vendor/bin/phpcs --standard=WordpressOefenweb ~/foo/bar/wp-load.php;
```