Skip to content

Commit 1055861

Browse files
authored
chore: cleanup and version bump (#14)
* chore: cleanup and version bump * ci: restore services * ci: revert
1 parent b1c4967 commit 1055861

14 files changed

Lines changed: 543 additions & 515 deletions

File tree

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/bin export-ignore
44
/docker export-ignore
55
/docs export-ignore
6-
/phpstan export-ignore
76
/tests export-ignore
87
/wp-graphql-plugin-name export-ignore
98

@@ -18,3 +17,4 @@
1817
/phpstan.neon.dist export-ignore
1918
/phpunit.xml.dist export-ignore
2019
/wp-graphql-plugin-boilerplate.php export-ignore
20+
/README.md export-ignore

.phpcs.xml.dist

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<ruleset name="Coding Standards for WPGraphQL Plugin Boilerplate" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Coding Standards for WPGraphQL Plugin Boilerplate" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
33
<description>Sniffs for the WPGraphQL plugin ecosystem </description>
44

55
<!-- What to scan: include any root-level PHP files, and the /src folder -->
@@ -44,19 +44,32 @@
4444

4545
<!-- Rules: WPGraphQL Coding Standards -->
4646
<!-- https://github.com/AxeWP/WPGraphQL-Coding-Standards/WPGraphQL/ruleset.xml -->
47-
<rule ref="WPGraphQL" />
47+
<rule ref="WPGraphQL">
48+
<!-- Deprecated: @todo remove in WPCS v4 -->
49+
<exclude name="WordPressVIPMinimum.JS"/>
50+
<exclude name="Generic.Functions.CallTimePassByReference" />
51+
</rule>
4852

4953
<!-- Individual rule configuration -->
5054
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
5155
<properties>
52-
<!-- Value: replace the function, class, and variable prefixes used. Separate multiple prefixes with a comma. -->
53-
<property name="prefixes" type="array" value=" AxeWP\GraphQL, wp_graphql, WPGraphQL\PluginName, graphql_pb, WPGRAPHQL_PB, AXEWP_PB" />
56+
<property name="prefixes" type="array">
57+
<!-- Value: replace the function, class, and variable prefixes used.-->
58+
<element value="AxeWP\GraphQL" />
59+
<element value="wp_graphql" />
60+
<element value="WPGraphQL\PluginName" />
61+
<element value="graphql_pb" />
62+
<element value="WPGRAPHQL_PB" />
63+
<element value="AXEWP_PB" />
64+
</property>
5465
</properties>
5566
</rule>
5667
<rule ref="WordPress.WP.I18n">
5768
<properties>
58-
<!-- Value: replace the text domain used. -->
59-
<property name="text_domain" type="array" value="wp-graphql-plugin-name"/>
69+
<property name="text_domain" type="array">
70+
<!-- Value: replace the text domain used. -->
71+
<element value="wp-graphql-plugin-name" />
72+
</property>
6073
</properties>
6174
</rule>
6275
</ruleset>

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [Unreleased]
44
* feat: Add support for lazy-loaded configuration values (e.g., descriptions) using callables, with compatibility layer for older WPGraphQL versions.
55
* chore: Update Composer dependencies.
6+
* chore: misc code cleanup and formatting.
67

78
## v0.1.0
89
* feat: Enabled strict type declarations across all PHP files

0 commit comments

Comments
 (0)