Repository navigation
chore: migrate to rtcamp/wp-phpcs - #185
Open
justlevine wants to merge 1 commit into
Open
justlevine wants to merge 1 commit into
justlevine wants to merge 1 commit into
Conversation
justlevine
commented
Nov 22, 2026
Comment on lines
+66
to
+103
| <!-- | ||
| @todo - Why are these left out of the rtCampWP ruleset? | ||
| --> | ||
| <rule ref="SlevomatCodingStandard.Classes.DisallowConstructorPropertyPromotion" /> | ||
| <rule ref="SlevomatCodingStandard.Classes.DisallowLateStaticBindingForConstants" /> | ||
| <rule ref="SlevomatCodingStandard.Exceptions.DisallowNonCapturingCatch" /> | ||
| <rule ref="SlevomatCodingStandard.Functions.DisallowEmptyFunction" /> | ||
| <rule ref="SlevomatCodingStandard.Functions.UnusedParameter" /> | ||
| <rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"> | ||
| <properties> | ||
| <property name="ignoredAnnotationNames" type="array"> | ||
| <element value="@phpstan-import-type" /> | ||
| <element value="@phpstan-param" /> | ||
| <element value="@phpstan-return" /> | ||
| <element value="@phpstan-template" /> | ||
| <element value="@phpstan-type" /> | ||
| <element value="@phpstan-var" /> | ||
| </property> | ||
| </properties> | ||
| </rule> | ||
| <rule ref="SlevomatCodingStandard.Namespaces.MultipleUsesPerLine" /> | ||
|
|
||
| <!-- @todo fix spacing upstream so we don't need to fix it here. --> | ||
| <rule ref="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces"> | ||
| <properties> | ||
| <property name="linesCountAfterOpeningBrace" value="0" /> | ||
| </properties> | ||
| </rule> | ||
| <rule ref="SlevomatCodingStandard.Classes.TraitUseSpacing"> | ||
| <properties> | ||
| <property name="linesCountBeforeFirstUseWhenFirstInClass" value="0" /> | ||
| </properties> | ||
| </rule> | ||
| <rule ref="Squiz.WhiteSpace.FunctionSpacing"> | ||
| <properties> | ||
| <property name="spacingBeforeFirst" value="0" /> | ||
| </properties> | ||
| </rule> |
Collaborator
Author
There was a problem hiding this comment.
@aryanjasala @Adi-ty - would love your thoughts here. Or more specifically why these are missing/different upstream
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #185 +/- ##
============================================
+ Coverage 93.82% 94.90% +1.07%
Complexity 112 112
============================================
Files 28 21 -7
Lines 486 471 -15
Branches 1 0 -1
============================================
- Hits 456 447 -9
+ Misses 29 24 -5
+ Partials 1 0 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Migrates to use wp-tooling for WPCS
Why
To deprecate + archive
rtcamp/coding-standards-dRelated Issue(s):
How
AI Disclosure
Testing Instructions
Screenshots
Additional Info
Checklist