Skip to content

Commit

Permalink
Remove the WordPress-Docs coding standard and all associated changes. (
Browse files Browse the repository at this point in the history
…#56982)

Remove the WordPress-Docs coding standard and associated changes. Refer to #56487 for more details.
  • Loading branch information
anton-vlasenko authored Dec 13, 2023
1 parent 37401d5 commit b592ba9
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
</rule>

<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
Expand Down Expand Up @@ -59,45 +58,6 @@
<exclude-pattern>./vendor/*</exclude-pattern>
<exclude-pattern>./test/php/gutenberg-coding-standards/*</exclude-pattern>

<!-- Exclude files maintained in WordPress Core and backported to Gutenberg -->
<exclude-pattern>./lib/compat/wordpress-*/html-api/*.php</exclude-pattern>

<!-- These special comments are markers for the build process -->
<rule ref="Squiz.Commenting.InlineComment.WrongStyle">
<exclude-pattern>gutenberg.php</exclude-pattern>
</rule>

<!-- Do not require docblocks for unit tests -->
<rule ref="Squiz.Commenting.FunctionComment.Missing">
<exclude-pattern>phpunit/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>phpunit/*</exclude-pattern>
<exclude-pattern>test/gutenberg-test-themes/*</exclude-pattern>
<exclude-pattern>**/*.min.asset.php</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.ClassComment.Missing">
<exclude-pattern>phpunit/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.ClassComment.SpacingAfter">
<exclude-pattern>phpunit/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionComment.MissingParamTag">
<exclude-pattern>phpunit/*</exclude-pattern>
</rule>
<rule ref="Generic.Commenting.DocComment.Empty">
<exclude-pattern>phpunit/*</exclude-pattern>
</rule>
<rule ref="Generic.Commenting.DocComment.MissingShort">
<exclude-pattern>phpunit/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.VariableComment.Missing">
<exclude-pattern>phpunit/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionCommentThrowTag.Missing">
<exclude-pattern>phpunit/*</exclude-pattern>
</rule>

<!-- Ignore filename error since it requires WP core build process change -->
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>/phpunit/*</exclude-pattern>
Expand Down

1 comment on commit b592ba9

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in b592ba9.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7199911405
📝 Reported issues:

Please sign in to comment.