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

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

from SublimeLinter.lint import Linter, util


class PuppetLint(Linter):

    """Provides an interface to puppet-lint."""

    syntax = 'puppet'
    cmd = ('puppet-lint', '--log-format', '%{linenumber}:%{column}:%{kind}:%{message}', '*')
    executable = None
    regex = (
        r'^(?P<line>\d+):(?P<col>\d+):'
        r'((?P<warning>warning)|(?P<error>error)):'
        r'(?P<message>.+)'
    )
    tempfile_suffix = '-'
    error_stream = util.STREAM_STDOUT<commit_msg>fix regex<commit_after>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by <NAME>
# Copyright (c) 2014 <NAME>
#
# License: MIT
#

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

from SublimeLinter.lint import Linter, util


class PuppetLint(Linter):

    """Provides an interface to puppet-lint."""

    syntax = 'puppet'
    cmd = ('puppet-lint', '--log-format', '%{line}:%{column}:%{kind}:%{message}', '*')
    executable = None
    regex = (
        r'^(?P<line>\d+):(?P<col>\d+):'
        r'((?P<warning>warning)|(?P<error>error)):'
        r'(?P<message>.+)'
    )
    tempfile_suffix = '-'
    error_stream = util.STREAM_STDOUT
{'fraction_non_alphanumeric': 0.18938307030129126, 'fraction_numerical': 0.00860832137733142, 'mean_word_length': 3.65, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1133769', 'n_tokens_mistral': 538, 'n_tokens_neox': 507, 'n_words': 112}