Skip to content

Commit 5224143

Browse files
authored
release: v2.0.0 (#7)
1 parent 05ba145 commit 5224143

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
44

55
This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/).
66

7+
## [ Unreleased ]
8+
9+
## [2.0.0] - 2025-02-15
10+
11+
This release updates the `WPGraphQL-Core` ruleset to match the latest changes included in WPGraphQL [v2.0.0](https://github.com/wp-graphql/wp-graphql/releases/tag/v2.0.0).
12+
13+
It also marks the first v2.0 "stable" release of the WPGraphQL Coding Standards. While it coincides with WPGraphQL v2.0, it's more of a reflection of the stability of the ruleset that these were the only changes needed to WPGraphQL or these rulesets since April 2020.
14+
15+
### WPGraphQL-Core
16+
17+
- Added `WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid`.
18+
- Added `SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue.NullabilityTypeMissing`.
19+
720
## [2.0.0-beta.3] - 2024-04-05
821

922
This release explicitly adds `Squiz.WhiteSpace.SuperfluousWhitespace` to the `WPGraphQL-Extra` ruleset, as it is silenced by VIPCS.
@@ -30,7 +43,7 @@ This release updates the ruleset based on the latest changes to WPGraphQL core (
3043
- Moved `SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingAnyTypeHint` from `WPGraphQL-Extra` and made explicit.
3144

3245
### WPGraphQL-Docs
33-
- Added`Squiz.Commenting` subset of `WordPress-Docs`.
46+
- Added `Squiz.Commenting` subset of `WordPress-Docs`.
3447
- Added `SlevomatCodingStandard.TypeHints.LongTypeHints`.
3548
- Moved `SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification` from `WPGraphQL-Extra` and made explicit.
3649
- Moved `SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation` from `WPGraphQL-Extra` and made explicit.

WPGraphQL-Core/ruleset.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,13 @@
66

77
<!-- Load WordPress Coding standards -->
88
<rule ref="WPGraphQL-Strict" >
9-
<!-- This would be a breaking change to fix in Core -->
10-
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid"/>
119
<!-- Most capabilities are referenced via variable -->
1210
<exclude name="WordPress.WP.Capabilities.Undetermined" />
1311
<!-- Most would require breaking changes to fix in core. Tracking: https://github.com/wp-graphql/wp-graphql/issues/2925 -->
1412
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter" />
1513

1614
<!-- Depends on Squiz.Commenting.FunctionComment.MissingParamComment -->
1715
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation" />
18-
19-
<!-- Should probably be added back. -->
20-
<exclude name="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue.NullabilityTypeMissing" />
2116
</rule>
2217

2318
<rule ref="WPGraphQL-Docs" />

0 commit comments

Comments
 (0)