<gh_stars>1-10
#
# 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 RamlCop plugin class."""

from SublimeLinter.lint import NodeLinter


class RamlCop(NodeLinter):

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

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

#
# 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 RamlCop plugin class."""

from SublimeLinter.lint import NodeLinter


class RamlCop(NodeLinter):

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

    syntax = 'raml'
    cmd = 'raml-cop --no-color --no-includes'
    version_requirement = '>= 5.0.0'
    regex = (
        r'^\[.+:(?P<line>\d+):(?P<col>\d+)\] '
        r'(?:(?P<error>ERROR)|(?P<warning>WARNING)) '
        r'(?P<message>.+)'
    )
    line_col_base = (0, 0)
    tempfile_suffix = '-'
# # 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 RamlCop plugin class. Provides an interface to raml-cop.