function makeAnnotation()

in lib/main.js [31:46]


function makeAnnotation(raw) {
    // Chop `./` off the front so that Github will recognize the file path
    const normalized_path = raw.filename.replace('./', '');
    const annotation_level = (getAnnotationLevel() == 'warning') ?
        'warning' :
        '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}`,
    };
}