introducing secretGroup, the best group (#734)

* working on deduping

* my eyes... oh god my poor eyes

* more readme

* more readme

* more readme

* more readme and formatting
This commit is contained in:
Zachary Rice authored and GitHub committed 2021-12-02 20:04:36 -06:00
1 parent 9358e84588
commit 98d5648f6e
22 files changed
+248 -107

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ func FromGit(files <-chan *gitdiff.File, cfg config.Config, outputOptions Option
for _, fi := range DetectFindings(cfg, []byte(tf.Raw(gitdiff.OpAdd)), f.NewName, commitSHA) {
// don't add to start/end lines if finding is from a file only rule
if !strings.HasPrefix(fi.Context, "file detected") {
if !strings.HasPrefix(fi.Match, "file detected") {
fi.StartLine += int(tf.NewPosition)
fi.EndLine += int(tf.NewPosition)
}