Skip to content

Commit

Permalink
feat: align analysis context
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pkey committed Mar 4, 2022
1 parent c43c279 commit 2d8bf4f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/interfaces/analysis-options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, boolean>;
};
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;
};
}

Expand Down

0 comments on commit 2d8bf4f

Please sign in to comment.