Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WP PHPCS and apply auto fixable changes (#1)
- Loading branch information
1 parent
0bc1c9c
commit c8041e4
Showing
4 changed files
with
59 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/vendor/ | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "willnorris/comment-saver", | ||
"description": "Saves comment text in a temporary cookie before it is submitted.", | ||
"license": "GPL-2.0-or-later", | ||
"type": "wordpress-plugin", | ||
"authors": [ | ||
{ | ||
"name": "Will Norris", | ||
"email": "will@willnorris.com", | ||
"homepage": "https://willnorris.com/", | ||
"role": "Developer" | ||
} | ||
], | ||
"homepage": "https://wordpress.org/plugins/comment-saver/", | ||
"require": { | ||
"php": "^5.6 || 7.* || >=8.0 <8.3" | ||
}, | ||
"require-dev": { | ||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0", | ||
"wp-coding-standards/wpcs": "^2.3" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
}, | ||
"sort-packages": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0"?> | ||
<ruleset> | ||
<file>.</file> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
|
||
<rule ref="WordPress"/> | ||
|
||
<arg value="sp"/> | ||
<arg name="colors"/> | ||
<arg name="extensions" value="php"/> | ||
</ruleset> |