Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 30 days 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-15T11:34:40.000Z (over 8 years ago)
- Last Synced: 2024-11-16T01:45:26.554Z (about 1 month 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;
```