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

from SublimeLinter.lint import NodeLinter


class RamlCop(NodeLinter):

    """Provides an interface to raml-cop."""

    syntax = 'raml'
    cmd = 'raml-cop --no-color'
    version_requirement = '>= 1.0.0'
    regex = (
        r'^\[.+:(?P<line>\d+):(?P<col>\d+)\] '
        r'(?:(?P<warning>WARNING)|(?P<error>ERROR)) '
        r'(?P<message>.+)'
    )
    line_col_base = (0, 0)


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

from SublimeLinter.lint import NodeLinter


class RamlCop(NodeLinter):

    """Provides an interface to raml-cop."""

    syntax = 'raml'
    cmd = 'raml-cop --no-color'
    version_requirement = '>= 1.0.0'
    regex = (
        r'^\[.+:(?P<line>\d+):(?P<col>\d+)\] '
        r'(?P<message>.+)'
    )
    line_col_base = (0, 0)

Update regex to match new parser output
Update regex to match new parser output

  
  """This module exports the RamlCop plugin class."""
  
  from SublimeLinter.lint import NodeLinter
  
  
  class RamlCop(NodeLinter):
  
      """Provides an interface to raml-cop."""
  
      syntax = 'raml'
      cmd = 'raml-cop --no-color'
      version_requirement = '>= 1.0.0'
      regex = (
          r'^\[.+:(?P<line>\d+):(?P<col>\d+)\] '
-         r'(?:(?P<warning>WARNING)|(?P<error>ERROR)) '
          r'(?P<message>.+)'
      )
      line_col_base = (0, 0)
  
Update regex to match new parser output
## Code Before:

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

from SublimeLinter.lint import NodeLinter


class RamlCop(NodeLinter):

    """Provides an interface to raml-cop."""

    syntax = 'raml'
    cmd = 'raml-cop --no-color'
    version_requirement = '>= 1.0.0'
    regex = (
        r'^\[.+:(?P<line>\d+):(?P<col>\d+)\] '
        r'(?:(?P<warning>WARNING)|(?P<error>ERROR)) '
        r'(?P<message>.+)'
    )
    line_col_base = (0, 0)

## Instruction:
Update regex to match new parser output
## Code After:

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

from SublimeLinter.lint import NodeLinter


class RamlCop(NodeLinter):

    """Provides an interface to raml-cop."""

    syntax = 'raml'
    cmd = 'raml-cop --no-color'
    version_requirement = '>= 1.0.0'
    regex = (
        r'^\[.+:(?P<line>\d+):(?P<col>\d+)\] '
        r'(?P<message>.+)'
    )
    line_col_base = (0, 0)
