API/api.medcify.app/node_modules/snyk/dist/lib/formatters/open-source-sarif-output.d.ts
2022-09-26 11:41:44 +05:30

7 lines
434 B
TypeScript

import * as sarif from 'sarif';
import { TestResult, AnnotatedIssue } from '../snyk-test/legacy';
export declare function createSarifOutputForOpenSource(testResults: TestResult[]): sarif.Log;
export declare function getRules(testResult: TestResult): sarif.ReportingDescriptor[];
export declare function getResults(testResult: any): sarif.Result[];
export declare function getLevel(vuln: AnnotatedIssue): "error" | "warning" | "note";