Skip to content

Commit

Permalink
Merge pull request #8 from a8cteam51/feat/add-t51-phpcs-config
Browse files Browse the repository at this point in the history
feat: add t51 phpcs config
  • Loading branch information
chrisbellboy committed Jun 26, 2024
2 parents ae7c458 + 94e38f5 commit bb374cf
Show file tree
Hide file tree
Showing 4 changed files with 728 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<ruleset name="wpsp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>Custom ruleset for wpsp blocks monorepo</description>

<rule ref="./vendor/a8cteam51/team51-configs/quality-tools/phpcs.xml.dist"/>

</ruleset>
46 changes: 46 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "a8cteam51/wpsp",
"type": "wordpress-project",

"description": "",
"homepage": "https://github.com/a8cteam51/special-projects-blocks-monorepo",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Contributors",
"homepage": "https://github.com/a8cteam51/special-projects-blocks-monorepo/graphs/contributors"
}
],

"repositories": [
{
"type": "vcs",
"url": "https://github.com/a8cteam51/team51-configs"
}
],
"require": {
"php": ">=7.4",
"ext-json": "*"
},
"require-dev": {
"a8cteam51/team51-configs": "dev-trunk",

"wp-coding-standards/wpcs": "^3",
"phpcompatibility/phpcompatibility-wp": "*"
},

"scripts": {
"packages-install": "@composer install --ignore-platform-reqs --no-interaction",
"packages-update": [
"@composer clear-cache",
"@composer update --prefer-stable --no-interaction"
]
},

"config": {
"allow-plugins": {
"composer/*": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading

0 comments on commit bb374cf

Please sign in to comment.