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

Implement a custom stringifier #1513

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

henriquemoody
Copy link
Member

The standards CompositeStringifier from "respect/stringifier" has lots of interesting stringifiers. However, this library is not 100% focused on engineers. Someone could type a string that matches a callable, and then you will overexpose the system.

This commit makes sure that callables are not interpreted as callables.

@henriquemoody henriquemoody added this to the 3.0 milestone Dec 26, 2024
Copy link

codecov bot commented Dec 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.59%. Comparing base (a3c197f) to head (b8f4949).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1513      +/-   ##
============================================
+ Coverage     96.53%   96.59%   +0.05%     
- Complexity      976      979       +3     
============================================
  Files           200      201       +1     
  Lines          2398     2435      +37     
============================================
+ Hits           2315     2352      +37     
  Misses           83       83              

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

@henriquemoody henriquemoody force-pushed the core/stringifier branch 4 times, most recently from 0cdd57b to f9469f2 Compare December 26, 2024 23:14
The standards `CompositeStringifier` from "respect/stringifier" has lots
of interesting stringifiers. However, this library is not 100% focused
on engineers. Someone could type a string that matches a callable, and
then you will overexpose the system.

This commit makes sure that callables are not interpreted as callables.
@henriquemoody henriquemoody merged commit b8f4949 into Respect:main Dec 26, 2024
8 checks passed
@henriquemoody henriquemoody deleted the core/stringifier branch December 27, 2024 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant