Output Parsing
lint:
definitions:
- name: todo-finder
files: [ALL]
commands:
- output: regex
# matches the parser run output
parse_regex: "((?P<path>.*):(?P<line>\\d+):(?P<col>\\d+):
\\[(?P<severity>.*)\\] (?P<message>.*) \\((?P<code>.*)\\))"
run: grep --with-filename --line-number --ignore-case todo ${target}
success_codes: [0, 1]
read_output_from: stdout
parser:
run:
"sed -E 's/(.*):([0-9]+):(.*)/\\1:\\2:0:
[error] Found todo in \"\\3\" (found-todo)/'"Last updated

