Skip to content
Snippets Groups Projects
Commit 6b05be61 authored by Krzysiek's avatar Krzysiek
Browse files

PHPcs support. Run "composer phpcs"

parent d6254ee2
No related branches found
No related tags found
1 merge request!1Devel 1.10 - Wymagana wersja PHP i Wordpress
......@@ -11,13 +11,18 @@
},
"require-dev": {
"phpunit/phpunit": "^6",
"friendsofphp/php-cs-fixer": "^2.10",
"wp-coding-standards/wpcs": "^0.14.1",
"squizlabs/php_codesniffer": "^3.0.2",
"mockery/mockery": "^1.0",
"10up/wp_mock": "^0.3"
"10up/wp_mock": "^0.3",
"wimg/php-compatibility": "^8"
},
"autoload-dev": {
"psr-4": {
"JpkTest\\": "tests"
}
},
"scripts": {
"phpcs": "vendor/bin/phpcs"
}
}
This diff is collapsed.
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for WP Desk Plugin">
<description>Sniffs for WordPress WPDesk plugins</description>
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs,vendor/wimg/php-compatibility" />
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="5.5-"/>
<rule ref="WordPress"/>
<config name="text_domain" value="wpdesk-plugin,default,s214-settings-demo"/>
<arg name="extensions" value="php"/>
<file>./bootstrap.php</file>
<file>./plugin-template.php</file>
<file>./classes</file>
<exclude-pattern>*/settings-api/*</exclude-pattern>
</ruleset>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment