Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down