All notable changes to this project will be documented in this file.
This projects adheres to Semantic Versioning and Keep a CHANGELOG.
This release updates the WPGraphQL-Core
ruleset to match the latest changes included in WPGraphQL v2.0.0.
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.
- Added
WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
. - Added
SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue.NullabilityTypeMissing
.
This release explicitly adds Squiz.WhiteSpace.SuperfluousWhitespace
to the WPGraphQL-Extra
ruleset, as it is silenced by VIPCS.
- Added
Squiz.WhiteSpace.SuperfluousWhitespace
and made explicit.
This release updates the ruleset based on the latest changes to WPGraphQL core (v1.18.0). Specifically:
- Added
PHPCompatibility.Keywords.ForbiddenNamesAsDeclared.objectFound
. - Moved
SlevomatCodingStandard.Classes.RequireSelfReference
fromWPGraphQL-Strict
. - Moved
SlevomatCodingStandard.TypeHints.ReturnTypeHint.LessSpecificNativeTypeHint
fromWPGraphQL-Extra
and made explicit. - Moved
SlevomatCodingStandard.Variables.UselessVariable
fromWPGraphQL-Extra
.
- Moved
SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses
fromWPGraphQL-Extra
. - Added
SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue
. - Added
SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition
. - Moved
SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingAnyTypeHint
fromWPGraphQL-Extra
and made explicit. - Moved
SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint
fromWPGraphQL-Extra
and made explicit. - Moved
SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingAnyTypeHint
fromWPGraphQL-Extra
and made explicit.
- Added
Squiz.Commenting
subset ofWordPress-Docs
. - Added
SlevomatCodingStandard.TypeHints.LongTypeHints
. - Moved
SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification
fromWPGraphQL-Extra
and made explicit. - Moved
SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation
fromWPGraphQL-Extra
and made explicit. - Moved
SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessSuppress
fromWPGraphQL-Extra
and made explicit. - Moved
SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing
fromWPGraphQL-Extra
. - Moved
SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification
fromWPGraphQL-Extra
and made explicit. - Moved
SlevomatCodingStandard.TypeHints.PropertyTypeHint.UselessSuppress
fromWPGraphQL-Extra
and made explicit. - Moved
SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification
fromWPGraphQL-Extra
and made explicit. - Moved
SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation
fromWPGraphQL-Extra
and made explicit. - Moved
SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessSuppress
fromWPGraphQL-Extra
and made explicit. - Moved
SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing
fromWPGraphQL-Extra
.
- Added
WPGraphQL-Docs
with some exceptions.
This release requires WPCS 3.0.0 or higher. Please read the WordPressCS 3.0 upgrade guide for instructions on how to update your local rulesets and code annotations.
- feat!: Bumped minimum WPCS and VIPCS versions to
3.0.0
. - fix!: Remove unused
WordPress.CodeAnalysis.AssignmentInCondition.Found
exclusion fromWPGraphQL-Minimum
. - feat!: Add
Generic.CodeAnalysis.UnusedFunctionParameter
andWordPress.WP.Capabilities.Undetermined
sniffs toWPGraphQL-Strict
. These sniffs are excluded from theWPGraphQL-Core
standard.
- feat!: Updated
WPGraphQL-Minimum
andWPGraphQL-Strict
based on the latest changes to WPGraphQL core. (See https://github.com/wp-graphql/wp-graphql/compare/release/v1.14.10...develop#diff-05ae9cddcaec1e845771a7db224961439f83ef5939ec67d3a48744cb34d7e58b) - feat: Add
WPGraphQL-Core
coding standard, for a snapshot of what's currently being used upstream.
- feat!: Move
WordPress.WP.I18n.MissingTranslatorsComment
fromWPGraphQL-Strict
toWPGraphQL-Minimum
. (Added to WPGraphQL in wp-graphql/wp-graphql#2856) - feat!: Move
SlevomatCodingStandard.Functions.StaticClosure
fromWPGraphQL-Strict
toWPGraphQL-Minimum
. (Added to WPGraphQL in wp-graphql/wp-graphql#2855) - chore: Update
slevomat/coding-standard
to8.13.4
. - chore: Update Composer dev-deps.
- dev: Remove
Squiz.Commenting.FunctionComment.ParamCommentFullStop
andSquiz.Commenting.FunctionComment.EmptyThrows
fromWPGraphQL-Strict
. - dev: Update minimum PHPUnit version to
8.5.0
. - chore: Update
phpcs.xml.dist.example
to set the schema locationcache
andseverity
values, and add additional inline-comments.
- Initial release