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

Create "Templated" rule #1510

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Conversation

henriquemoody
Copy link
Member

Because of how the validation engine works, there's no reason to keep adding templates to each rule. Instead, creating a single rule that handles templating rules will simplify the library greatly and shrink the Rule interface.

Copy link

codecov bot commented Dec 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.51%. Comparing base (634a155) to head (1d1da7f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1510      +/-   ##
============================================
- Coverage     96.52%   96.51%   -0.02%     
+ Complexity      966      964       -2     
============================================
  Files           201      202       +1     
  Lines          2388     2379       -9     
============================================
- Hits           2305     2296       -9     
  Misses           83       83              

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

@henriquemoody henriquemoody force-pushed the core/templated branch 4 times, most recently from 6a33f16 to f57f9b4 Compare December 26, 2024 13:34
Because of how the validation engine works, there's no reason to keep
adding templates to each rule. Instead, creating a single rule that
handles templating rules will simplify the library greatly and shrink
the `Rule` interface.

Personally, I think this API is much more straightforward than the
`setTemplate()` method, as it's way more explicit which rule is being
templated.
@henriquemoody henriquemoody merged commit 1d1da7f into Respect:main Dec 26, 2024
8 checks passed
@henriquemoody henriquemoody deleted the core/templated branch December 26, 2024 13:44
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