https://github.com/oefenweb/cakephp-xss-codesniffer
Modified version of the CakePHP Code Sniffer (XSS)
https://github.com/oefenweb/cakephp-xss-codesniffer
cakephp ci codesniffer php phpcs travis-ci
Last synced: 5 months ago
JSON representation
Modified version of the CakePHP Code Sniffer (XSS)
- Host: GitHub
- URL: https://github.com/oefenweb/cakephp-xss-codesniffer
- Owner: Oefenweb
- License: mit
- Created: 2018-08-21T11:30:52.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T10:04:46.000Z (about 3 years ago)
- Last Synced: 2025-02-25T14:36:30.644Z (over 1 year ago)
- Topics: cakephp, ci, codesniffer, php, phpcs, travis-ci
- Size: 4.88 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Oefenweb Code Sniffer for CakePHP 2 (XSS)
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 CakePHPXSSOefenweb && cd $_ && composer require oefenweb/cakephp-xss-codesniffer=^2.0.0;
```
```sh
vendor/bin/phpcs \
--config-set installed_paths "${PWD}/vendor/wp-coding-standards/wpcs,${PWD}/vendor/oefenweb/cakephp-xss-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=CakePHPXSSOefenweb --extensions=ctp app/View/Pages;
```