Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
C
camo-image-proxy
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WP Plugins
camo-image-proxy
Commits
a13d5174
Commit
a13d5174
authored
Aug 07, 2018
by
Erick Hitter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better PHPCS
parent
251ae1c1
Pipeline
#114
failed with stage
in 18 minutes and 51 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
23 deletions
+44
-23
.gitignore
.gitignore
+0
-1
.gitlab-ci.yml
.gitlab-ci.yml
+5
-5
phpcs.xml
phpcs.xml
+39
-0
phpcs.xml.dist
phpcs.xml.dist
+0
-17
No files found.
.gitignore
View file @
a13d5174
.DS_Store
phpcs.xml
phpunit.xml
Thumbs.db
wp-cli.local.yml
...
...
.gitlab-ci.yml
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
phpcs.xml
0 → 100644
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>
phpcs.xml.dist
deleted
100644 → 0
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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment