Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Size rule #1487

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Refactor Size rule #1487

merged 1 commit into from
Dec 16, 2024

Conversation

henriquemoody
Copy link
Member

No description provided.

@henriquemoody henriquemoody added this to the 3.0 milestone Dec 11, 2024
@henriquemoody henriquemoody force-pushed the rule/size branch 2 times, most recently from cdcf090 to 9ecdf70 Compare December 16, 2024 19:46
@henriquemoody henriquemoody marked this pull request as ready for review December 16, 2024 19:48
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 97.84946% with 2 lines in your changes missing coverage. Please review.

Project coverage is 96.54%. Comparing base (94daa8d) to head (6e3ed79).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
library/Transformers/DeprecatedSize.php 96.72% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1487      +/-   ##
============================================
- Coverage     96.55%   96.54%   -0.02%     
- Complexity      967      973       +6     
============================================
  Files           200      201       +1     
  Lines          2354     2403      +49     
============================================
+ Hits           2273     2320      +47     
- Misses           81       83       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Currently, the Size rule does multiple things, yet it's limited. Because
it does many things, it's also confusing. Turning the Size rule into a
transformation allows for way more flexibility and clarity.

The syntax becomes more verbose, but the rule becomes more reusable.
@henriquemoody henriquemoody merged commit 6e3ed79 into Respect:main Dec 16, 2024
8 checks passed
@henriquemoody henriquemoody deleted the rule/size branch December 16, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant