diff --git a/linter.py b/linter.py index 52458f3..19fa3dc 100644 --- a/linter.py +++ b/linter.py @@ -41,7 +41,7 @@ class Golangcilint(NodeLinter): # | 1.4565s | gosec | cmd = "golangci-lint run --fast --out-format json" defaults = {"selector": "source.go"} - error_stream = util.STREAM_STDOUT + error_stream = util.STREAM_BOTH line_col_base = (1, 1) def run(self, cmd, code): @@ -128,6 +128,10 @@ def find_errors(self, output): yield self._lintissue(issue) + def on_stderr(self, output): + logger.warning('{} output:\n{}'.format(self.name, output)) + self.notify_failure() + def finalize_cmd(self, cmd, context, at_value='', auto_append=False): """prevents SublimeLinter from appending an unnecessary file""" return cmd