Skip to content

Commit

Permalink
Merge pull request #158 from vmware-tanzu/efd
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Woods authored Oct 18, 2023
2 parents 59287a9 + 3368d61 commit 1944d15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions csa-app/csa/AppAnalyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ func (csaService *CsaService) analyzeApp(run *model.Run, app *model.Application,
go func(idx int) {
defer waitGroup.Done()
if *util.Verbose {
util.WriteLog(fmt.Sprintf("A1nalyzing - %s", app.Name), "Scanning Files... Filename: %s\n", app.Files[idx].FQN)
util.WriteLog(fmt.Sprintf("Analyzing - %s", app.Name), "Scanning Files... Filename: %s\n", app.Files[idx].FQN)
}

err := csaService.analyzeFile(run, app, app.Files[idx], csaService.saveChan)

if err != nil {
if *util.FailFast {
util.WriteLog("A2nalyzing...error!", "Error occurred during analysis! Details: %s", err.Error())
util.WriteLog("Analyzing...error!", "Error occurred during analysis! Details: %s", err.Error())
csaService.stopRun(run)
os.Exit(2)
} else {
Expand Down
10 changes: 5 additions & 5 deletions csa-app/model/Finding.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ type FindingDTO struct {
}

func (f *Finding) SetValue(value string) {
if len(value) > (FINDING_VAL_LEN) {
f.Value = value[0:(FINDING_VAL_LEN-5)] + "..."
if *util.Efd {
f.Value = "---"
f.Result = "---"
} else {
if *util.Efd {
f.Value = "---"
f.Result = "---"
if len(value) > (FINDING_VAL_LEN) {
f.Value = value[0:(FINDING_VAL_LEN-5)] + "..."
} else {
f.Value = value
}
Expand Down

0 comments on commit 1944d15

Please sign in to comment.