checkmake icon indicating copy to clipboard operation
checkmake copied to clipboard

write formatter for syntastic compatible output

Open mrtazz opened this issue 7 years ago • 2 comments

this would be awesome to integrate with vim and syntastic

mrtazz avatar Aug 30 '16 14:08 mrtazz

Making the output GCC-compatible (like mypy and shellcheck -f gcc) would allow easy integration with many tools beyond syntastic.

The GCC output format is %filename:%line:%column: %severity: %message. Severity isn't too important; we can start by simply labeling everything as warning

Seirdy avatar Mar 08 '20 13:03 Seirdy

@Seirdy Would something like this work:

checkmake "/path/to/Makefile" --format="/path/to/Makefile:{{ .LineNumber }}:0: warning {{ .Rule }}:{{ .Violation }}
"

(note the closing double quote is on a separate line intentionally; otherwise, it all prints on one line (even if '\n' or "\n" is included in the format string)

wesley-dean-flexion avatar Jul 21 '22 17:07 wesley-dean-flexion