refactor cli
This commit is contained in:
@@ -82,40 +82,18 @@ export interface SourceInfo {
|
||||
sourceLocationPrefix: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* The expected output of `codeql resolve queries`.
|
||||
*/
|
||||
type ResolvedQueries = string[];
|
||||
type ResolvedQueries = string[]; // `codeql resolve queries`
|
||||
type ResolvedTests = string[]; // `codeql resolve tests`
|
||||
|
||||
/**
|
||||
* The expected output of `codeql resolve tests`.
|
||||
*/
|
||||
type ResolvedTests = string[];
|
||||
|
||||
/**
|
||||
* The severity of a compilation message for a test message.
|
||||
*/
|
||||
export enum CompilationMessageSeverity {
|
||||
Error = "ERROR",
|
||||
Warning = "WARNING",
|
||||
}
|
||||
|
||||
/**
|
||||
* A compilation message for a test message (either an error or a warning).
|
||||
*/
|
||||
export interface CompilationMessage {
|
||||
/**
|
||||
* The text of the message
|
||||
*/
|
||||
message: string;
|
||||
/**
|
||||
* The source position associated with the message
|
||||
*/
|
||||
position: Position;
|
||||
/**
|
||||
* The severity of the message
|
||||
*/
|
||||
severity: CompilationMessageSeverity;
|
||||
message: string; // Text of the message
|
||||
position: Position; // Source position
|
||||
severity: CompilationMessageSeverity; // Error or Warning
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user