-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Daniele Scasciafratte <[email protected]>
- Loading branch information
1 parent
0563157
commit cec655d
Showing
2 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Codeat Coding Standards | ||
|
||
[![Packagist](https://img.shields.io/packagist/v/codeatcode/codeatcs.svg?color=239922&style=popout)](https://packagist.org/packages/codeatcode/codeatcs) | ||
|
||
CodeatCS is a project with rulsets used for the Codeat plugins/themes development based on [WordPress Coding Standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) project, implementing official [WordPress PHP Coding Standards](https://make.wordpress.org/core/handbook/coding-standards/php/), [Slevomat Coding Standard](https://github.com/slevomat/coding-standard), [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibility) and [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibilityWP). | ||
|
||
## PHP Code Sniffer | ||
|
||
### How to disable rules | ||
|
||
```bash | ||
phpcs --standard=./vendor/codeatcode/codeatcs/CodeatCodingStandard/ruleset.xml ./file.php -s | ||
``` | ||
|
||
The `-s` parameter shows sniff codes in all reports. |