protected List < IScanIssue > processIssues ( List < ScannerMatch > matches , IHttpRequestResponse baseRequestResponse ) { List < IScanIssue > issues = new ArrayList <> ( ) ; if ( ! matches . isEmpty ( ) ) { Collections . sort ( matches ) ; //matches must be in order //get the offsets of scanner matches List < int [ ] > startStop = new ArrayList <> ( 1 ) ; for ( ScannerMatch match : matches ) { callbacks . printOutput ( "Processing match: " + match ) ; callbacks . printOutput ( " start: " + match . getStart ( ) + " end: " + match . getEnd ( ) + " full match: " + match . getFullMatch ( ) + " group: " + match . getMatchGroup ( ) ) ; //add a marker for code highlighting startStop . add ( new int [ ] { match . getStart ( ) , match . getEnd ( ) } ) ; } issues . add ( getScanIssue ( baseRequestResponse , matches , startStop ) ) ; callbacks . printOutput ( "issues: " + issues . size ( ) ) ; } return issues ; }
Process scanner matches into a list of reportable issues .