Skip to content

Commit

Permalink
fix: remove unused Ignored flag
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed Aug 22, 2023
1 parent e7bda07 commit 0547e26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
6 changes: 2 additions & 4 deletions pkg/report/output/security/.snapshots/TestGetOutput
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
DetailedContext: (string) "",
CodeExtract: (string) "",
RawCodeExtract: ([]file.Line) {
},
Ignored: (bool) false
}
}
},
(string) (len=4) "high": ([]security.Result) (len=1) {
Expand Down Expand Up @@ -102,8 +101,7 @@
DetailedContext: (string) "",
CodeExtract: (string) "",
RawCodeExtract: ([]file.Line) {
},
Ignored: (bool) false
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
DetailedContext: (string) "",
CodeExtract: (string) "",
RawCodeExtract: ([]file.Line) {
},
Ignored: (bool) false
}
}
}
}
2 changes: 0 additions & 2 deletions pkg/report/output/security/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ type Result struct {
DetailedContext string `json:"detailed_context,omitempty" yaml:"detailed_context,omitempty"`
CodeExtract string `json:"code_extract,omitempty" yaml:"code_extract,omitempty"`
RawCodeExtract []file.Line `json:"-" yaml:"-"`
Ignored bool `json:"ignored,omitempty" yaml:"ignored,omitempty"`
}

type Rule struct {
Expand Down Expand Up @@ -291,7 +290,6 @@ func evaluateRules(
RawCodeExtract: rawCodeExtract,
Fingerprint: fingerprint,
OldFingerprint: oldFingerprint,
Ignored: ignored,
}

severity := CalculateSeverity(result.CategoryGroups, rule.Severity, output.IsLocal != nil && *output.IsLocal)
Expand Down

0 comments on commit 0547e26

Please sign in to comment.