Skip to content

Conversation

d0ugal
Copy link
Contributor

@d0ugal d0ugal commented Aug 28, 2025

This builds on #1468 and adds support to multi http checks.

If #1468 hasn't merged it is best to look at the individual commits as its included.

@d0ugal d0ugal changed the title Feature/pr3 multihttp secrets feat: Add support for secrets in multihttp checks Aug 28, 2025
@d0ugal d0ugal changed the title feat: Add support for secrets in multihttp checks feat: add support for secrets in multihttp checks Aug 28, 2025
@d0ugal d0ugal force-pushed the feature/pr3-multihttp-secrets branch 4 times, most recently from d9f769e to 2304a80 Compare September 1, 2025 12:58
Extract helper functions to reduce the nestif complexity from 17 to acceptable levels.
- handleSecretVariables: processes secret variables in the buffer
- handleRegularVariables: processes regular variables in remaining text
- processRegularVariableMatches: processes regex matches for variables
- writePlusIfNeeded: writes plus sign if builder has content
- writeTextBeforeMatch: writes quoted text before regex match
- writeQuotedText: writes text as quoted JavaScript string

This refactoring maintains the same functionality while improving code readability
and passing golangci-lint nestif complexity checks.
@d0ugal d0ugal force-pushed the feature/pr3-multihttp-secrets branch from 212623a to 16e5979 Compare September 4, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant