-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix wrong line number #1891
Fix wrong line number #1891
Conversation
Hey @dustin-decker! Can I get a review of this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
This doesn't appear to be a "fix wrong line number" PR - this changes trufflehog's JSON output from returning 0-indexed line numbers to 1-indexed line numbers and is a backwards breaking change. Am I missing something here? |
This reverts commit 7f534d0.
Turns out that the issue is only in the |
This reverts commit 7f534d0.
Description:
This fixes the wrong line numbers that are reported. See #1876.
count("\n") + 1
Checklist:
make test-community
)?make lint
this requires golangci-lint)?