def find_errors(self, output):
        try:
            # calling flow in a matching syntax without a `flowconfig` will cause the
            # output of flow to be an error message. catch and return []
            parsed = json.loads(output)
        except ValueError:
            persist.debug('flow {}'.format(output))
            return []

        errors = parsed.get('errors', [])

        persist.debug('flow {} errors. passed: {}'.format(len(errors), parsed.get('passed', True)))
        return map(self._error_to_tuple, errors)
Convert flow's json output into a set of matches SublimeLinter can process.
dataset/ETHPy150Open SublimeLinter/SublimeLinter-flow/linter.py/Flow.find_errors