All notable changes to this project will be documented in this file.
This projects adheres to Semantic Versioning and Keep a CHANGELOG.
This release adds support for the latest alpha versions of PHPCompatibility and PHPCompatibilityWP, and makes a few accompanying changes to the rulesets.
- feat: Add additional
@phpstan-*properties toSlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation.ignoredAnnotationNames. - feat: Exclude deprecated
WordPressVIPMinimum.JSruleset.
- feat: Add
Squiz.WhiteSpace.FunctionSpacingtoWPGraphQL-Extraruleset to limit max. consecutive blank lines to 1 instead of 2.
- dev: Add support for PHPCompatibility v10-alpha and PHPCompatibilityWP v3-alpha.
- docs: Update example ruleset to default to PHP 8.2 and WP 6.5.
- ci: Update GitHub workflow with latest action versions.
- ci: Add
dependabot.ymlconfig for GitHub workflows. - chore: Address misc formatting nits.
This release fixes several bugs where rules were not being disabled correctly.
We've also added CI to the repo to test the rulesets against the latest WPGraphQL codebase, to preemptively catch future issues.
- fix: Fix incorrect excludes XML block in
WPGraphQL-Coreruleset.
- fix: Disable
Squiz.Commenting.VariableComment.MissingVarin favor ofSlevomatCodingStandard.TypeHints.PropertyTypeHint.
- fix: Ignore
SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotationfor PHPStan annotations.
- ci: Add test workflow.
- docs: cleanup Readme.
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.SuperfluousWhitespaceand 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.RequireSelfReferencefromWPGraphQL-Strict. - Moved
SlevomatCodingStandard.TypeHints.ReturnTypeHint.LessSpecificNativeTypeHintfromWPGraphQL-Extraand made explicit. - Moved
SlevomatCodingStandard.Variables.UselessVariablefromWPGraphQL-Extra.
- Moved
SlevomatCodingStandard.Namespaces.AlphabeticallySortedUsesfromWPGraphQL-Extra. - Added
SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue. - Added
SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition. - Moved
SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingAnyTypeHintfromWPGraphQL-Extraand made explicit. - Moved
SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHintfromWPGraphQL-Extraand made explicit. - Moved
SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingAnyTypeHintfromWPGraphQL-Extraand made explicit.
- Added
Squiz.Commentingsubset ofWordPress-Docs. - Added
SlevomatCodingStandard.TypeHints.LongTypeHints. - Moved
SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecificationfromWPGraphQL-Extraand made explicit. - Moved
SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotationfromWPGraphQL-Extraand made explicit. - Moved
SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessSuppressfromWPGraphQL-Extraand made explicit. - Moved
SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacingfromWPGraphQL-Extra. - Moved
SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecificationfromWPGraphQL-Extraand made explicit. - Moved
SlevomatCodingStandard.TypeHints.PropertyTypeHint.UselessSuppressfromWPGraphQL-Extraand made explicit. - Moved
SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecificationfromWPGraphQL-Extraand made explicit. - Moved
SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotationfromWPGraphQL-Extraand made explicit. - Moved
SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessSuppressfromWPGraphQL-Extraand made explicit. - Moved
SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacingfromWPGraphQL-Extra.
- Added
WPGraphQL-Docswith 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.Foundexclusion fromWPGraphQL-Minimum. - feat!: Add
Generic.CodeAnalysis.UnusedFunctionParameterandWordPress.WP.Capabilities.Undeterminedsniffs toWPGraphQL-Strict. These sniffs are excluded from theWPGraphQL-Corestandard.
- feat!: Updated
WPGraphQL-MinimumandWPGraphQL-Strictbased 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-Corecoding standard, for a snapshot of what's currently being used upstream.
- feat!: Move
WordPress.WP.I18n.MissingTranslatorsCommentfromWPGraphQL-StricttoWPGraphQL-Minimum. (Added to WPGraphQL in wp-graphql/wp-graphql#2856) - feat!: Move
SlevomatCodingStandard.Functions.StaticClosurefromWPGraphQL-StricttoWPGraphQL-Minimum. (Added to WPGraphQL in wp-graphql/wp-graphql#2855) - chore: Update
slevomat/coding-standardto8.13.4. - chore: Update Composer dev-deps.
- dev: Remove
Squiz.Commenting.FunctionComment.ParamCommentFullStopandSquiz.Commenting.FunctionComment.EmptyThrowsfromWPGraphQL-Strict. - dev: Update minimum PHPUnit version to
8.5.0. - chore: Update
phpcs.xml.dist.exampleto set the schema locationcacheandseverityvalues, and add additional inline-comments.
- Initial release