Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
camo-image-proxy
Commits
a13d5174
Commit
a13d5174
authored
Aug 07, 2018
by
Erick Hitter
Browse files
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
.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