def find_errors(self, output):
        """
        Convert flow's json output into a set of matches SublimeLinter can process.

        I'm not sure why find_errors isn't exposed in SublimeLinter's docs, but
        this would normally attempt to parse a regex and then return a generator
        full of sanitized matches. Instead, this implementation returns a list
        of errors processed by _error_to_tuple, ready for SublimeLinter to unpack
        """
        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 __HOLE__:
            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)
dataset/ETHPy150Open SublimeLinter/SublimeLinter-flow/linter.py/Flow.find_errors