Skip to content
Snippets Groups Projects
Commit 99a51018 authored by dyszczo's avatar dyszczo
Browse files

new phpcs and library update

parent 1d77305a
No related branches found
No related tags found
1 merge request!35library update. PHPCS ruleset from wpdesk
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
}, },
"scripts": { "scripts": {
"test": "echo composer is alive", "test": "echo composer is alive",
"phpcs": "phpcs", "phpcs": "phpcs --standard=phpcs.xml.dist",
"phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never", "phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never",
"phpunit-integration": "phpunit --configuration phpunit-integration.xml --coverage-text --colors=never", "phpunit-integration": "phpunit --configuration phpunit-integration.xml --coverage-text --colors=never",
"docs": "apigen generate" "docs": "apigen generate"
......
This diff is collapsed.
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for WP Desk Plugin"> <ruleset name="WordPress Coding Standards for WP Desk Plugin">
<description>Sniffs for WordPress WPDesk plugins</description>
<config name="testVersion" value="5.6-"/>
<config name="text_domain" value="plugin-template"/> <config name="text_domain" value="plugin-template"/>
<arg name="extensions" value="php"/>
<file>./src</file>
<exclude-pattern>*/settings-api/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern> <exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>scoper\.inc\.php</exclude-pattern> <exclude-pattern>scoper.inc.php</exclude-pattern>
<rule ref="PHPCompatibility"/>
<rule ref="WordPress"/>
<!-- Remove checking if classes are in class- files -->
<rule ref="WordPress.Files.FileName">
<exclude-pattern>/src/.*\.php</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName"> <rule ref="WPDeskPlugin"/>
<exclude-pattern>/src/.*\.php</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.ValidVariableName">
<exclude-pattern>/src/.*\.php</exclude-pattern>
</rule>
</ruleset> </ruleset>
...@@ -35,7 +35,7 @@ if ( ! defined( 'ABSPATH' ) ) { ...@@ -35,7 +35,7 @@ if ( ! defined( 'ABSPATH' ) ) {
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */ /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
$plugin_version = '1.0.0'; $plugin_version = '1.0.0';
$plugin_release_timestamp = '2019-11-29 19:01'; $plugin_release_timestamp = '2020-05-20 10:19';
$plugin_name = 'WP Desk Plugin Template'; $plugin_name = 'WP Desk Plugin Template';
$plugin_class_name = '\WPDesk\PluginTemplate\Plugin'; $plugin_class_name = '\WPDesk\PluginTemplate\Plugin';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment