
"""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]+)'


"""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

  
  """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<line>\d+):'
-         r'((?P<warning>W\:)|(?P<error>error\:)):'
+         r'(?:(?P<warning>W)|(?P<error>error))'
-         r'(?P<message>.+)'
+         r'(?:P<message>.+)'
      )
      tempfile_suffix = '-'
      error_stream = util.STREAM_STDOUT
-     word_re = r'^(".*?"|[-\w]+)'
  
+ 
Fix regexp for rpmlint output
## Code Before:

"""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]+)'

## Instruction:
Fix regexp for rpmlint output
## Code After:

"""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

