in src/main.ts [27:42]
function makeAnnotation(raw: RawAnnotation): Annotation {
// Chop `./` off the front so that Github will recognize the file path
const normalized_path = raw.filename.replace('./', '');
const annotation_level = (getAnnotationLevel() == 'warning') ?
<const>'warning' :
<const>'failure';
return {
path: normalized_path,
start_line: raw.lineNumber,
end_line: raw.lineNumber,
start_column: raw.columnNumber,
end_column: raw.columnNumber,
annotation_level: annotation_level,
message: `[${raw.errorCode}] ${raw.errorDesc}`,
}
}