'Perform global analysis for all vulnerabilities found.'

def end(self):

    if (self._total_count == 0):
        return
    vuln_already_reported = []
    for vuln_store_item in self._vulns:
        for (csp_directive_name, csp_vulns_list) in vuln_store_item.csp_vulns.iteritems():
            for csp_vuln in csp_vulns_list:
                if (csp_vuln.desc in vuln_already_reported):
                    continue
                occurrences = self._find_occurrences(csp_vuln.desc)
                if (len(occurrences) > 1):
                    v = Vuln(self.VULN_NAME, csp_vuln.desc, csp_vuln.severity, occurrences, self.get_name())
                    v.set_url(vuln_store_item.url.base_url())
                    vuln_already_reported.append(csp_vuln.desc)
                else:
                    v = Vuln(self.VULN_NAME, csp_vuln.desc, csp_vuln.severity, vuln_store_item.resp_id, self.get_name())
                    v.set_url(vuln_store_item.url)
                self.kb_append(self, 'csp', v)
    self._urls.cleanup()
    self._vulns.cleanup()
