working on tests now

This commit is contained in:
zach rice committed 2019-03-28 13:13:26 -05:00
1 parent ac14d347de
commit ae4542abf0
8 files changed
+951 -43

No files matched your search

+12
View File
@@ -11,8 +11,20 @@ import (
"time"
log "github.com/sirupsen/logrus"
"gopkg.in/src-d/go-git.v4/plumbing/object"
)
type commitInfo struct {
content string
commit *object.Commit
filePath string
repoName string
sha string
message string
author string
date time.Time
}
// writeReport writes a report to a file specified in the --report= option.
// Default format for report is JSON. You can use the --csv option to write the report as a csv
func writeReport(leaks []Leak) error {