From 2d8bf4feeac328f03c690b0c776025c83361d96e Mon Sep 17 00:00:00 2001 From: Paulius Kutka Date: Fri, 4 Mar 2022 15:36:22 +0000 Subject: [PATCH] feat: align analysis context in code_api, analysis context is a completely different object. The change will make sure that we are passing the right parameters from CLI or IDE --- src/interfaces/analysis-options.interface.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/interfaces/analysis-options.interface.ts b/src/interfaces/analysis-options.interface.ts index 7d4e4e39..37dd4fd3 100644 --- a/src/interfaces/analysis-options.interface.ts +++ b/src/interfaces/analysis-options.interface.ts @@ -18,12 +18,24 @@ export enum AnalysisSeverity { export interface AnalysisContext { analysisContext?: { + initiator: 'IDE' | 'CLI' | 'GIT' | 'unknown'; + flow?: string; + org?: { + name: string; + displayName: string; + publicId: string; + flags: Record; + }; + project?: { + name: string; + publicId: string; + type: string; + }; + //TODO: this should be removed - leaving here for backwards compatibility orgPublicId?: string; orgDisplayName?: string; projectPublicId?: string; projectName?: string; - initiator: 'IDE' | 'CLI'; - flow?: string; }; }