#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jon Surrell
# Copyright (c) 2014 Jon Surrell
#
# License: MIT
#

"""This module exports the Govet plugin class."""

from SublimeLinter.lint import Linter, util


class Govet(Linter):
    """Provides an interface to go vet."""

    syntax = ('go', 'gosublime-go')
    cmd = ('go', 'tool', 'vet')
    regex = r'^.+:(?P<line>\d+):(?P<col>\d+):\s+(?P<message>.+)'
    tempfile_suffix = 'go'
    error_stream = util.STREAM_STDERR

#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jon Surrell
# Copyright (c) 2014 Jon Surrell
#
# License: MIT
#

"""This module exports the Govet plugin class."""

from SublimeLinter.lint import Linter, util


class Govet(Linter):
    """Provides an interface to go vet."""

    syntax = ('go', 'gosublime-go')
    cmd = ('go', 'tool', 'vet')
    regex = r'^.+:(?P<line>\d+):\s+(?P<message>.+)'
    tempfile_suffix = 'go'
    error_stream = util.STREAM_STDERR

    def split_match(self, match):
        match, line, col, error, warning, message, near = super().split_match(match)
        return match, line, 0, error, warning, message, near

Remove col matching