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

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

from SublimeLinter.lint import Linter, util


class Rpmlint(Linter):

    """Provides an interface to rpmlint."""

    syntax = 'rpm spec'
    cmd = 'rpmlint'
    executable = None
    regex = (
        r'^(?P<line>\d+):'
        r'((?P<warning>W\:)|(?P<error>error\:)):'
        r'(?P<message>.+)'
    )
    tempfile_suffix = '-'
    error_stream = util.STREAM_STDOUT
    word_re = r'^(".*?"|[-\w]+)'

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

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

from SublimeLinter.lint import Linter, util


class Rpmlint(Linter):

    """Provides an interface to rpmlint."""

    syntax = 'rpm spec'
    cmd = 'rpmlint'
    executable = None
    regex = (
        r'(?P<line>\d+):'
        r'(?:(?P<warning>W)|(?P<error>error))'
        r'(?:P<message>.+)'
    )
    tempfile_suffix = '-'
    error_stream = util.STREAM_STDOUT


Fix regexp for rpmlint output
Fix regexp for rpmlint output
