https://github.com/oefenweb/cakephp-codesniffer
Modified version of the CakePHP Code Sniffer
https://github.com/oefenweb/cakephp-codesniffer
cakephp cakephp-plugin ci codesniffer php phpcs travis-ci
Last synced: 11 months ago
JSON representation
Modified version of the CakePHP Code Sniffer
- Host: GitHub
- URL: https://github.com/oefenweb/cakephp-codesniffer
- Owner: Oefenweb
- License: mit
- Created: 2015-03-03T10:01:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-07-17T08:01:31.000Z (almost 2 years ago)
- Last Synced: 2025-07-11T15:32:39.723Z (11 months ago)
- Topics: cakephp, cakephp-plugin, ci, codesniffer, php, phpcs, travis-ci
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Oefenweb Code Sniffer for CakePHP 2
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 CakePHPOefenweb && cd $_ && composer require oefenweb/cakephp-codesniffer=^2.0.0;
```
```sh
vendor/bin/phpcs \
--config-set installed_paths "${PWD}/vendor/cakephp/cakephp-codesniffer,${PWD}/vendor/oefenweb/cakephp-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=CakePHPOefenweb ~/foo/bar/index.php;
```