fix broken vet, format some stuff

This commit is contained in:
Zach committed 2023-06-13 16:05:04 -05:00
1 parent fab4f4e97d
commit b1d59bf890
6 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -156,10 +156,10 @@ func (d *Detector) AddGitleaksIgnore(gitleaksIgnorePath string) error {
// https://github.com/securego/gosec/issues/512
defer func() {
if err := file.Close(); err != nil {
if err := file.Close(); err != nil {
log.Warn().Msgf("Error closing .gitleaksignore file: %s\n", err)
}
}()
}()
scanner := bufio.NewScanner(file)
for scanner.Scan() {
+1 -1
View File
@@ -101,7 +101,7 @@ func printFinding(f report.Finding, noColor bool) {
skipColor := noColor
finding := ""
var secret lipgloss.Style
// Matches from filenames do not have a |line| or |secret|
if !isFileMatch {
matchInLineIDX := strings.Index(f.Line, f.Match)