<commit_before>from SublimeLinter.lint import Linter, util


class Govet(Linter):
    cmd = ('go', 'vet', '${file_path}')

    regex = (
        r'.+?:(?P<line>\d+):((?P<col>\d+):)'  # Parse line and col.
        r'?\s+(?P<message>(.+\s*(?!(.+\/)))+)'  # Parse multiline message.
    )

    multiline = True

    tempfile_suffix = '-'
    error_stream = util.STREAM_STDERR
    defaults = {
        'selector': 'source.go'
    }<commit_msg>Improve regex<commit_after>from SublimeLinter.lint import Linter, util


class Govet(Linter):
    cmd = ('go', 'vet', '${file_path:file_name}')

    regex = r'(?P<filename>^.+):(?P<line>\d+):(?P<col>\d+):\s+(?P<message>.+)'

    tempfile_suffix = '-'
    error_stream = util.STREAM_STDERR
    defaults = {
        'selector': 'source.go'
    }
{'fraction_non_alphanumeric': 0.2186700767263427, 'fraction_numerical': 0.0, 'mean_word_length': 3.078125, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1000827', 'n_tokens_mistral': 316, 'n_tokens_neox': 295, 'n_words': 49}