@@ -32,8 +32,8 @@ type ResultsWriter struct {
3232 isMultipleRoots * bool
3333 // PrintExtended, If true, show extended results.
3434 printExtended bool
35- // For table format - show table only for the given subScansPreformed
36- subScansPreformed []utils.SubScanType
35+ // For table format - show table only for the given subScansPerformed
36+ subScansPerformed []utils.SubScanType
3737 // Messages - Option array of messages, to be displayed if the format is Table
3838 messages []string
3939}
@@ -52,8 +52,8 @@ func (rw *ResultsWriter) SetIsMultipleRootProject(isMultipleRootProject bool) *R
5252 return rw
5353}
5454
55- func (rw * ResultsWriter ) SetSubScansPreformed ( subScansPreformed []utils.SubScanType ) * ResultsWriter {
56- rw .subScansPreformed = subScansPreformed
55+ func (rw * ResultsWriter ) SetSubScansPerformed ( subScansPerformed []utils.SubScanType ) * ResultsWriter {
56+ rw .subScansPerformed = subScansPerformed
5757 return rw
5858}
5959
@@ -137,7 +137,7 @@ func (rw *ResultsWriter) createResultsConvertor(pretty bool) *conversion.Command
137137 IncludeLicenses : rw .includeLicenses ,
138138 IncludeVulnerabilities : rw .includeVulnerabilities ,
139139 HasViolationContext : rw .hasViolationContext ,
140- RequestedScans : rw .subScansPreformed ,
140+ RequestedScans : rw .subScansPerformed ,
141141 Pretty : pretty ,
142142 })
143143}
@@ -201,7 +201,7 @@ func (rw *ResultsWriter) printTables() (err error) {
201201 if err = rw .printOrSaveRawResults (true ); err != nil {
202202 return
203203 }
204- if utils .IsScanRequested (rw .commandResults .CmdType , utils .ScaScan , rw .subScansPreformed ... ) {
204+ if utils .IsScanRequested (rw .commandResults .CmdType , utils .ScaScan , rw .subScansPerformed ... ) {
205205 if rw .hasViolationContext {
206206 if err = PrintViolationsTable (tableContent , rw .commandResults .CmdType , rw .printExtended ); err != nil {
207207 return
@@ -218,17 +218,17 @@ func (rw *ResultsWriter) printTables() (err error) {
218218 }
219219 }
220220 }
221- if utils .IsScanRequested (rw .commandResults .CmdType , utils .SecretsScan , rw .subScansPreformed ... ) {
221+ if utils .IsScanRequested (rw .commandResults .CmdType , utils .SecretsScan , rw .subScansPerformed ... ) {
222222 if err = PrintSecretsTable (tableContent , rw .commandResults .EntitledForJas , rw .commandResults .SecretValidation ); err != nil {
223223 return
224224 }
225225 }
226- if utils .IsScanRequested (rw .commandResults .CmdType , utils .IacScan , rw .subScansPreformed ... ) {
226+ if utils .IsScanRequested (rw .commandResults .CmdType , utils .IacScan , rw .subScansPerformed ... ) {
227227 if err = PrintJasTable (tableContent , rw .commandResults .EntitledForJas , jasutils .IaC ); err != nil {
228228 return
229229 }
230230 }
231- if ! utils .IsScanRequested (rw .commandResults .CmdType , utils .SastScan , rw .subScansPreformed ... ) {
231+ if ! utils .IsScanRequested (rw .commandResults .CmdType , utils .SastScan , rw .subScansPerformed ... ) {
232232 return nil
233233 }
234234 return PrintJasTable (tableContent , rw .commandResults .EntitledForJas , jasutils .Sast )
0 commit comments