Skip to content

Conversation

bplaxco
Copy link
Contributor

@bplaxco bplaxco commented Feb 21, 2025

Description:

To allow other tools using d.Detect() to leverage the code in AddFinding

Changes:

  • Rename d.addFinding -> d.AddFinding
  • Add d.Findings()

My use case: https://github.com/leaktk/scanner/pull/107/files#diff-f8472fe0bafccc33f268c74d1bd2a697594914d4e1d796805b254249cbc78828R175-R182

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes? (N/A)
  • Have you lint your code locally prior to submission?

cc: @zricethezav && @rgmz

- Rename d.addFindings -> d.AddFindings
- Add d.Findings()

To allow other tools using d.Detect() to leverage the code in
AddFindings
@bplaxco bplaxco changed the title Make AddFindings public Make AddFinding public Feb 21, 2025
Copy link
Contributor

@rgmz rgmz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@zricethezav zricethezav merged commit f6a7439 into gitleaks:master Feb 24, 2025
2 checks passed
@bplaxco bplaxco deleted the pub-add-findings branch April 15, 2025 22:51
sirakav pushed a commit to sirakav/gitleaks that referenced this pull request Apr 25, 2025
- Rename d.addFindings -> d.AddFindings
- Add d.Findings()

To allow other tools using d.Detect() to leverage the code in
AddFindings
alayne222 pushed a commit to alayne222/gitleaks that referenced this pull request May 28, 2025
- Rename d.addFindings -> d.AddFindings
- Add d.Findings()

To allow other tools using d.Detect() to leverage the code in
AddFindings
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.

3 participants