Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorDetails ¶
type ErrorType ¶
type ErrorType string
const ( ErrorType_UNKNOWN_ERROR ErrorType = "UNKNOWN_ERROR" ErrorType_COMPILATION_ERROR ErrorType = "COMPILATION_ERROR" ErrorType_CRASH ErrorType = "CRASH" ErrorType_WARNING ErrorType = "WARNING" ErrorType_RUNTIME_ERROR ErrorType = "RUNTIME_ERROR" )
These constants must have this exact value (in uppercase) to be able to parse JSON-marshalled reports as protobuf reports which use an enum for this field.
type Finding ¶
type Finding struct { Name string `json:"name,omitempty"` Type ErrorType `json:"type,omitempty"` InputData []byte `json:"input_data,omitempty"` Logs []string `json:"logs,omitempty"` Details string `json:"details,omitempty"` HumanReadableInput string `json:"human_readable_input,omitempty"` MoreDetails *ErrorDetails `json:"more_details,omitempty"` Tag uint64 `json:"tag,omitempty"` ShortDescription string `json:"short_description,omitempty"` InputFile string }
func (*Finding) GetDetails ¶
func (*Finding) GetInputFile ¶
GetInputFile returns the path where the finding's input file can be found. Note that the InputFile field contains the path to the input file relative to the project directory. The GetInputFile therefore receives the project directory as an argument and returns the absolute path to the input file.
Click to show internal directories.
Click to hide internal directories.