ewww-image-optimizer
Last commit date
bin
9 years ago
binaries
2 years ago
classes
2 months ago
docs
7 years ago
images
3 months ago
includes
2 months ago
tests
2 months ago
vendor
10 months ago
.travis.yml
5 months ago
aux-optimize.php
2 months ago
bulk.php
2 months ago
changelog.txt
2 months ago
common.php
2 months ago
composer.json
10 months ago
composer.lock
3 years ago
ewww-image-optimizer.php
2 months ago
functions.php
6 months ago
license.txt
7 years ago
mwebp.php
2 months ago
phpcs.ruleset.xml
6 months ago
phpunit.xml
6 years ago
readme.txt
2 months ago
uninstall.php
7 years ago
unique.php
3 months ago
phpcs.ruleset.xml
70 lines
| 1 | <?xml version="1.0"?> |
| 2 | <ruleset name="WordPress Coding Standards for Plugins"> |
| 3 | <description>Generally-applicable sniffs for WordPress plugins</description> |
| 4 | <!-- Only sniff PHP files --> |
| 5 | <arg name="extensions" value="php"/> |
| 6 | |
| 7 | <exclude-pattern>/vendor/*</exclude-pattern> |
| 8 | <exclude-pattern>/tests/*</exclude-pattern> |
| 9 | |
| 10 | <rule ref="WordPress-Core" /> |
| 11 | <rule ref="WordPress-Docs" /> |
| 12 | |
| 13 | <rule ref="Squiz.PHP.CommentedOutCode"> |
| 14 | <exclude name="Squiz.PHP.CommentedOutCode.Found" /> |
| 15 | </rule> |
| 16 | |
| 17 | <rule ref="Generic.PHP.NoSilencedErrors"> |
| 18 | <exclude name="Generic.PHP.NoSilencedErrors.Discouraged" /> |
| 19 | </rule> |
| 20 | |
| 21 | <rule ref="WordPress.PHP.NoSilencedErrors"> |
| 22 | <properties> |
| 23 | <property name="customAllowedFunctionsList" type="array"> |
| 24 | <element value="ini_get"/> |
| 25 | <element value="exif_read_data"/> |
| 26 | <element value="ob_end_flush"/> |
| 27 | </property> |
| 28 | </properties> |
| 29 | </rule> |
| 30 | <rule ref="WordPress.NamingConventions.ValidVariableName"> |
| 31 | <properties> |
| 32 | <property name="allowed_custom_properties" type="array"> |
| 33 | <element value="formatOutput"/> |
| 34 | <element value="imgQuality"/> |
| 35 | <element value="parentNode"/> |
| 36 | <element value="nodeName"/> |
| 37 | <element value="nextSibling"/> |
| 38 | <element value="documentElement"/> |
| 39 | <element value="imagePath"/> |
| 40 | <element value="webimagePath"/> |
| 41 | <element value="thumbPath"/> |
| 42 | <element value="fileName"/> |
| 43 | <element value="Version"/> |
| 44 | <element value="Name"/> |
| 45 | </property> |
| 46 | </properties> |
| 47 | </rule> |
| 48 | |
| 49 | <rule ref="WordPress.WP.I18n"> |
| 50 | <properties> |
| 51 | <property name="text_domain" type="array"> |
| 52 | <element value="ewww-image-optimizer"/> |
| 53 | </property> |
| 54 | </properties> |
| 55 | </rule> |
| 56 | |
| 57 | <config name="testVersion">7.4-</config> |
| 58 | <rule ref="PHPCompatibilityWP"> |
| 59 | <severity>10</severity> |
| 60 | </rule> |
| 61 | |
| 62 | <rule ref="WordPress.Security"> |
| 63 | <severity>10</severity> |
| 64 | </rule> |
| 65 | |
| 66 | <rule ref="WordPress.DB.PreparedSQL"> |
| 67 | <severity>10</severity> |
| 68 | </rule> |
| 69 | </ruleset> |
| 70 |