Skip to content

Releases: AxeWP/WPGraphQL-Coding-Standards

2.0.0-beta.3

05 Apr 17:29
764056a
Compare
Choose a tag to compare
2.0.0-beta.3 Pre-release
Pre-release

This release explicitly adds Squiz.WhiteSpace.SuperfluousWhitespace to the WPGraphQL-Extra ruleset, as it is silenced by VIPCS.

What's Changed

WPGraphQL-Extra

  • Added Squiz.WhiteSpace.SuperfluousWhitespace and made explicit.

Full Changelog: 2.0.0-beta.2...2.0.0-beta.3

2.0.0-beta.2

05 Nov 13:39
88b27c5
Compare
Choose a tag to compare
2.0.0-beta.2 Pre-release
Pre-release

This release updates the ruleset based on the latest changes to WPGraphQL core (v1.18.0). Specifically:

WPGraphQL-Minimum

  • Added PHPCompatibility.Keywords.ForbiddenNamesAsDeclared.objectFound.
  • Moved SlevomatCodingStandard.Classes.RequireSelfReference from WPGraphQL-Strict.
  • Moved SlevomatCodingStandard.TypeHints.ReturnTypeHint.LessSpecificNativeTypeHint from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.Variables.UselessVariable from WPGraphQL-Extra.

WPGraphQL-Strict

  • Moved SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses from WPGraphQL-Extra.
  • Added SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue.
  • Added SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition.
  • Moved SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingAnyTypeHint from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingAnyTypeHint from WPGraphQL-Extra and made explicit.

WPGraphQL-Docs

  • AddedSquiz.Commenting subset of WordPress-Docs.
  • Added SlevomatCodingStandard.TypeHints.LongTypeHints.
  • Moved SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessSuppress from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing from WPGraphQL-Extra.
  • Moved SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.PropertyTypeHint.UselessSuppress from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessSuppress from WPGraphQL-Extra and made explicit.
  • Moved SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing from WPGraphQL-Extra.

WPGraphQL-Core

  • Added WPGraphQL-Docs with some exceptions.

Full Changelog: 2.0.0-beta.1...2.0.0-beta.2

2.0.0-beta.1

17 Sep 09:58
c576c6b
Compare
Choose a tag to compare
2.0.0-beta.1 Pre-release
Pre-release

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.

What's Changed

  • feat!: Bumped minimum WPCS and VIPCS versions to 3.0.0.
  • fix!: Remove unused WordPress.CodeAnalysis.AssignmentInCondition.Found exclusion from WPGraphQL-Minimum.
  • feat!: Add Generic.CodeAnalysis.UnusedFunctionParameter and WordPress.WP.Capabilities.Undetermined sniffs to WPGraphQL-Strict. These sniffs are excluded from the WPGraphQL-Core standard.

Full Changelog: 1.0.0-beta.4...2.0.0-beta.1

1.0.0-beta.4 - 2023-08-17

06 Sep 12:35
b2973c1
Compare
Choose a tag to compare
Pre-release

What's Changed

  • feat!: Updated WPGraphQL-Minimum and WPGraphQL-Strict based on the latest changes to WPGraphQL core.
  • feat: Add WPGraphQL-Core coding standard, for a snapshot of what's currently being used upstream.

Full Changelog: 1.0.0-beta.3...1.0.0-beta.4

1.0.0-beta.3 - 2023-08-04

04 Aug 19:59
365a066
Compare
Choose a tag to compare
Pre-release

What's Changed

  • feat!: Move WordPress.WP.I18n.MissingTranslatorsComment from WPGraphQL-Strict to WPGraphQL-Minimum. (Added to WPGraphQL in wp-graphql/wp-graphql#2856)
  • feat!: Move SlevomatCodingStandard.Functions.StaticClosure from WPGraphQL-Strict to WPGraphQL-Minimum. (Added to WPGraphQL in wp-graphql/wp-graphql#2855)
  • chore: Update slevomat/coding-standard to 8.13.4.
  • chore: Update Composer dev-deps.

Full Changelog: 1.0.0-beta.2...1.0.0-beta.3

1.0.0-beta.2 - 2023-06-17

17 Jun 14:55
Compare
Choose a tag to compare
Pre-release

What's changed

  • dev: Remove Squiz.Commenting.FunctionComment.ParamCommentFullStop and Squiz.Commenting.FunctionComment.EmptyThrows from WPGraphQL-Strict.
  • dev: Update minimum PHPUnit version to 8.5.0.
  • chore: Update phpcs.xml.dist.example to set the schema location cache and severity values, and add additional inline-comments.

1.0.0-beta.1 - 2023-06-05

05 Jun 09:18
Compare
Choose a tag to compare
Pre-release

Initial beta release.

The WPGraphQL-Minimum ruleset should be considered production-ready.

The other rulesets have been tested extensively against AxePress' suite of WPGraphQL extensions and tools, and will be audited against WPGraphQL core during the beta period.