Skip to content

Fix config validate rules when [extend] is used#1592

Merged
zricethezav merged 1 commit into
gitleaks:masterfrom
rgmz:fix/config-rule-validate
Oct 16, 2025
Merged

Fix config validate rules when [extend] is used#1592
zricethezav merged 1 commit into
gitleaks:masterfrom
rgmz:fix/config-rule-validate

Conversation

@rgmz
Copy link
Copy Markdown
Contributor

@rgmz rgmz commented Oct 21, 2024

Description:

This fixes an issue where rules were not being validated when the config contained [extend]. This closes #1590.

Because extendDepth is globally mutable, if extendDepth == 0 { was never true.

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes?
  • Have you lint your code locally prior to submission?

@rgmz rgmz mentioned this pull request Oct 21, 2024
@rgmz rgmz force-pushed the fix/config-rule-validate branch from aa4833b to 644e906 Compare October 30, 2024 12:56
@rgmz rgmz force-pushed the fix/config-rule-validate branch from 644e906 to 3f2eacd Compare December 5, 2024 23:36
@rgmz rgmz force-pushed the fix/config-rule-validate branch 3 times, most recently from 9918042 to e4011f6 Compare January 15, 2025 13:06
@rgmz rgmz force-pushed the fix/config-rule-validate branch 3 times, most recently from 9e02138 to 2935f5a Compare January 29, 2025 02:41
@rgmz rgmz force-pushed the fix/config-rule-validate branch from 2935f5a to e448be7 Compare April 6, 2025 16:52
@rgmz
Copy link
Copy Markdown
Contributor Author

rgmz commented Apr 6, 2025

@zricethezav Thoughts?

@rgmz rgmz force-pushed the fix/config-rule-validate branch from e448be7 to 07e0c09 Compare April 12, 2025 15:44
@rgmz rgmz force-pushed the fix/config-rule-validate branch from 07e0c09 to bdc9335 Compare April 30, 2025 22:48
@rgmz rgmz force-pushed the fix/config-rule-validate branch from bdc9335 to a16dbea Compare June 1, 2025 17:17
@rgmz rgmz force-pushed the fix/config-rule-validate branch from a16dbea to 44b4f43 Compare July 24, 2025 21:36
@zricethezav zricethezav merged commit d223718 into gitleaks:master Oct 16, 2025
2 checks passed
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.

Allowlists not working

2 participants