Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin-template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
plugin-template
Commits
99a51018
Commit
99a51018
authored
5 years ago
by
dyszczo
Browse files
Options
Downloads
Patches
Plain Diff
new phpcs and library update
parent
1d77305a
No related branches found
No related tags found
1 merge request
!35
library update. PHPCS ruleset from wpdesk
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
composer.json
+1
-1
1 addition, 1 deletion
composer.json
composer.lock
+1542
-1203
1542 additions, 1203 deletions
composer.lock
phpcs.xml.dist
+2
-22
2 additions, 22 deletions
phpcs.xml.dist
plugin-template.php
+1
-1
1 addition, 1 deletion
plugin-template.php
with
1546 additions
and
1227 deletions
composer.json
+
1
−
1
View file @
99a51018
...
@@ -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.
Click to expand it.
composer.lock
+
1542
−
1203
View file @
99a51018
This diff is collapsed.
Click to expand it.
phpcs.xml.dist
+
2
−
22
View file @
99a51018
<?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>
This diff is collapsed.
Click to expand it.
plugin-template.php
+
1
−
1
View file @
99a51018
...
@@ -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
=
'20
19-11
-2
9
1
9:01
'
;
$plugin_release_timestamp
=
'20
20-05
-2
0
1
0: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'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment