-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip : phpcs wordpress rules partly integrated
- Loading branch information
Showing
5 changed files
with
95 additions
and
21 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 |
---|---|---|
|
@@ -21,3 +21,4 @@ packages/*/*/webpack.config.js | |
*storybook.log | ||
/playwright/.*/ | ||
/phpunit/vendor/ | ||
/tmp |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
ECS_VERSION=12.2.1 | ||
PHP_VERSION=8.3 | ||
WORDPRESS_CODING_STANDARDS_VERSION=3.1 |
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,38 @@ | ||
<?xml version="1.0"?> | ||
<ruleset | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
name="ionos-wp-dev" | ||
namespace="ionos\wp-dev" | ||
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd" | ||
> | ||
|
||
<description>IONOS wp-dev PHP Coding Standard</description> | ||
|
||
<!-- ignore the following monorepo dirs/files --> | ||
<exclude-pattern>*/dist/*</exclude-pattern> | ||
<exclude-pattern>*/build/*</exclude-pattern> | ||
<exclude-pattern>./tmp/*</exclude-pattern> | ||
<exclude-pattern>./phpunit/*</exclude-pattern> | ||
<exclude-pattern>./wp-env-home/*</exclude-pattern> | ||
<exclude-pattern>*/languages/*</exclude-pattern> | ||
<exclude-pattern>*/node_modules/*</exclude-pattern> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
|
||
<!-- we don't want to check our php config files against wordpress rules --> | ||
<exclude-pattern>./rector-config-php7.4.php</exclude-pattern> | ||
<exclude-pattern>./ecs-config.php</exclude-pattern> | ||
|
||
<arg name="extensions" value="php" /> | ||
|
||
<!-- | ||
Included via WordPress-Extra. | ||
<rule ref="WordPress-Core"/> | ||
--> | ||
<rule ref="WordPress-Extra"> | ||
<exclude name="Squiz"/> | ||
<exclude name="PEAR"/> | ||
<exclude name="Universal"/> | ||
<exclude name="Generic"/> | ||
</rule> | ||
|
||
</ruleset> |