get-multi-plugin-result.d.ts 1.1 KB

12345678910111213141516171819202122
  1. import * as cliInterface from '@snyk/cli-interface';
  2. import { TestOptions, Options, MonitorOptions } from '../types';
  3. import { SupportedPackageManagers } from '../package-managers';
  4. import { PluginMetadata } from '@snyk/cli-interface/legacy/plugin';
  5. import { CallGraph } from '@snyk/cli-interface/legacy/common';
  6. export interface ScannedProjectCustom extends cliInterface.legacyCommon.ScannedProject {
  7. packageManager: SupportedPackageManagers;
  8. plugin: PluginMetadata;
  9. callGraph?: CallGraph;
  10. }
  11. interface FailedProjectScanError {
  12. targetFile?: string;
  13. error?: Error;
  14. errMessage: string;
  15. }
  16. export interface MultiProjectResultCustom extends cliInterface.legacyPlugin.MultiProjectResult {
  17. scannedProjects: ScannedProjectCustom[];
  18. failedResults?: FailedProjectScanError[];
  19. }
  20. export declare function getMultiPluginResult(root: string, options: Options & (TestOptions | MonitorOptions), targetFiles: string[]): Promise<MultiProjectResultCustom>;
  21. export declare function filterOutProcessedWorkspaces(root: string, scannedProjects: ScannedProjectCustom[], allTargetFiles: string[]): string[];
  22. export {};