updating changelog, readme, some other things

This commit is contained in:
zach rice committed 2018-10-20 17:16:35 -05:00
1 parent a998ddc9d4
commit 23489f3f18
4 files changed
+28 -3

No files matched your search

+4 -3
View File
@@ -63,7 +63,7 @@ type Options struct {
GithubUser string `long:"github-user" description:"Github user to audit"`
GithubOrg string `long:"github-org" description:"Github organization to audit"`
GithubURL string `long:"github-url" default:"https://api.github.com/" description:"GitHub API Base URL, use for GitHub Enterprise. Example: https://github.example.com/api/v3/"`
GithubPR string `long:"github-pr" description:"Github PR number to audit. This does not clone the repo."`
GithubPR string `long:"github-pr" description:"Github PR url to audit. This does not clone the repo. GITHUB_TOKEN must be set"`
IncludePrivate bool `short:"p" long:"private" description:"Include private repos in audit"`
/*
@@ -240,10 +240,11 @@ func main() {
if opts.Report != "" {
writeReport(leaks)
}
log.Infof("%d commits inspected in %s", totalCommits, durafmt.Parse(time.Now().Sub(now)).String())
if len(leaks) != 0 {
log.Warnf("%d leaks detected", len(leaks))
log.Warnf("%d leaks detected. %d commits inspected in %s", len(leaks), totalCommits, durafmt.Parse(time.Now().Sub(now)).String())
os.Exit(leakExit)
} else {
log.Infof("%d leaks detected. %d commits inspected in %s", len(leaks), totalCommits, durafmt.Parse(time.Now().Sub(now)).String())
}
}