Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Camo Image Proxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
Camo Image Proxy
Commits
a13d5174
Commit
a13d5174
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Better PHPCS
parent
251ae1c1
Branches
Branches containing commit
No related tags found
1 merge request
!1
Add GitLab CI
Pipeline
#114
failed
6 years ago
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+0
-1
0 additions, 1 deletion
.gitignore
.gitlab-ci.yml
+5
-5
5 additions, 5 deletions
.gitlab-ci.yml
phpcs.xml
+39
-0
39 additions, 0 deletions
phpcs.xml
phpcs.xml.dist
+0
-17
0 additions, 17 deletions
phpcs.xml.dist
with
44 additions
and
23 deletions
.gitignore
+
0
−
1
View file @
a13d5174
.DS_Store
phpcs.xml
phpunit.xml
Thumbs.db
wp-cli.local.yml
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
5
−
5
View file @
a13d5174
...
...
@@ -49,7 +49,7 @@ PHPunit:PHP5.3:MySQL:
services
:
-
mysql:5.6
script
:
-
phpcs
-
phpcs
-n
-
phpunit
allow_failure
:
true
...
...
@@ -58,7 +58,7 @@ PHPunit:PHP5.6:MySQL:
services
:
-
mysql:5.6
script
:
-
phpcs
-
phpcs
-n
-
phpunit
PHPunit:PHP7.0:MySQL
:
...
...
@@ -66,7 +66,7 @@ PHPunit:PHP7.0:MySQL:
services
:
-
mysql:5.6
script
:
-
phpcs
-
phpcs
-n
-
phpunit
PHPunit:PHP7.1:MySQL
:
...
...
@@ -74,7 +74,7 @@ PHPunit:PHP7.1:MySQL:
services
:
-
mysql:5.6
script
:
-
phpcs
-
phpcs
-n
-
phpunit
PHPunit:PHP7.2:MySQL
:
...
...
@@ -82,5 +82,5 @@ PHPunit:PHP7.2:MySQL:
services
:
-
mysql:5.6
script
:
-
phpcs
-
phpcs
-n
-
phpunit
This diff is collapsed.
Click to expand it.
phpcs.xml
0 → 100644
+
39
−
0
View file @
a13d5174
<?xml version="1.0"?>
<ruleset
name=
"WordPress Coding Standards for Plugins"
>
<description>
Generally-applicable sniffs for WordPress plugins
</description>
<!--
Pass some flags to PHPCS:
p flag: Show progress of the run.
s flag: Show sniff codes in all reports.
-->
<arg
value=
"ps"
/>
<!-- Strip the filepaths down to the relevant bit. -->
<arg
name=
"basepath"
value=
"./"
/>
<!-- Check up to 8 files simultaneously. -->
<arg
name=
"parallel"
value=
"8"
/>
<!-- Only check the PHP files. -->
<arg
name=
"extensions"
value=
"php"
/>
<!-- Check all files in this directory and the directories below it. -->
<file>
.
</file>
<!-- Exclude a few directories and autogenerated files. -->
<exclude-pattern>
*/node_modules/*
</exclude-pattern>
<exclude-pattern>
*/vendor/
</exclude-pattern>
<rule
ref=
"WordPress"
/>
<rule
ref=
"WordPressVIPMinimum"
/>
<!--<rule ref="WordPress-VIP-Go" />-->
<config
name=
"minimum_supported_wp_version"
value=
"4.9"
/>
<rule
ref=
"WordPress.NamingConventions.PrefixAllGlobals"
>
<properties>
<property
name=
"prefixes"
type=
"array"
value=
"camo"
/>
</properties>
</rule>
</ruleset>
This diff is collapsed.
Click to expand it.
phpcs.xml.dist
deleted
100644 → 0
+
0
−
17
View file @
251ae1c1
<?xml version="1.0"?>
<ruleset
name=
"WordPress Coding Standards for Plugins"
>
<description>
Generally-applicable sniffs for WordPress plugins
</description>
<rule
ref=
"WordPress-Core"
/>
<rule
ref=
"WordPress-Docs"
/>
<!-- Check all PHP files in directory tree by default. -->
<arg
name=
"extensions"
value=
"php"
/>
<file>
.
</file>
<!-- Show progress and sniff codes in all reports -->
<arg
value=
"ps"
/>
<exclude-pattern>
*/node_modules/*
</exclude-pattern>
<exclude-pattern>
*/vendor/*
</exclude-pattern>
</ruleset>
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