"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1280.1/src/lib/plugins/sast/types.ts" (20 Feb 2024, 770 Bytes) of package /linux/misc/snyk-cli-1.1280.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 export { Log, Tool, Result } from 'sarif';
    2 import {
    3   AnalysisResultSarif,
    4   FileAnalysis,
    5   ReportResult,
    6   ScmAnalysis,
    7 } from '@snyk/code-client';
    8 
    9 interface LocalCodeEngine {
   10   enabled: boolean;
   11   url: string;
   12   allowCloudUpload: boolean;
   13 }
   14 
   15 export interface SastSettings {
   16   sastEnabled: boolean;
   17   code?: number;
   18   error?: string;
   19   userMessage?: string;
   20   localCodeEngine: LocalCodeEngine;
   21   supportedLanguages?: string[];
   22   org?: string;
   23 }
   24 
   25 export interface TrackUsageResponse {
   26   code?: number;
   27   userMessage?: string;
   28 }
   29 
   30 export interface CodeTestResults {
   31   reportResults?: ReportResult['uploadResult'];
   32   analysisResults: AnalysisResultSarif;
   33 }
   34 
   35 export type CodeAnalysisResults =
   36   | (FileAnalysis & { analysisResults: AnalysisResultSarif })
   37   | ScmAnalysis;