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

from SublimeLinter.lint import RubyLinter


class RubyLint(RubyLinter):

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

    syntax = ('ruby', 'ruby on rails', 'rspec')
    cmd = 'ruby-lint@ruby'
    version_args = '--version'
    version_re = r'(?P<version>\d+\.\d+\.\d+)'
    version_requirement = '>= 2.0.0'
    regex = (
        r'^.+?: (?:(?P<warning>warning)|(?P<error>error)): '
        r'line (?P<line>\d+), column (?P<col>\d+): '
        r'(?P<message>.+)'
    )
    tempfile_suffix = 'rb'
    config_file = ('--config', 'ruby-lint.yml')


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

from SublimeLinter.lint import RubyLinter


class RubyLint(RubyLinter):

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

    syntax = ('ruby', 'ruby on rails', 'rspec')
    cmd = 'ruby -S ruby-lint'
    version_args = '-S ruby-lint --version'
    version_re = r'(?P<version>\d+\.\d+\.\d+)'
    version_requirement = '>= 2.0.0'
    regex = (
        r'^.+?: (?:(?P<warning>warning)|(?P<error>error)): '
        r'line (?P<line>\d+), column (?P<col>\d+): '
        r'(?P<message>.+)'
    )
    tempfile_suffix = 'rb'
    config_file = ('--config', 'ruby-lint.yml')

Use 'ruby -S' to find ruby-lint executable
Use 'ruby -S' to find ruby-lint executable

  
  """This module exports the RubyLint plugin class."""
  
  from SublimeLinter.lint import RubyLinter
  
  
  class RubyLint(RubyLinter):
  
      """Provides an interface to ruby-lint."""
  
      syntax = ('ruby', 'ruby on rails', 'rspec')
-     cmd = 'ruby-lint@ruby'
+     cmd = 'ruby -S ruby-lint'
-     version_args = '--version'
+     version_args = '-S ruby-lint --version'
      version_re = r'(?P<version>\d+\.\d+\.\d+)'
      version_requirement = '>= 2.0.0'
      regex = (
          r'^.+?: (?:(?P<warning>warning)|(?P<error>error)): '
          r'line (?P<line>\d+), column (?P<col>\d+): '
          r'(?P<message>.+)'
      )
      tempfile_suffix = 'rb'
      config_file = ('--config', 'ruby-lint.yml')
  
Use 'ruby -S' to find ruby-lint executable
## Code Before:

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

from SublimeLinter.lint import RubyLinter


class RubyLint(RubyLinter):

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

    syntax = ('ruby', 'ruby on rails', 'rspec')
    cmd = 'ruby-lint@ruby'
    version_args = '--version'
    version_re = r'(?P<version>\d+\.\d+\.\d+)'
    version_requirement = '>= 2.0.0'
    regex = (
        r'^.+?: (?:(?P<warning>warning)|(?P<error>error)): '
        r'line (?P<line>\d+), column (?P<col>\d+): '
        r'(?P<message>.+)'
    )
    tempfile_suffix = 'rb'
    config_file = ('--config', 'ruby-lint.yml')

## Instruction:
Use 'ruby -S' to find ruby-lint executable
## Code After:

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

from SublimeLinter.lint import RubyLinter


class RubyLint(RubyLinter):

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

    syntax = ('ruby', 'ruby on rails', 'rspec')
    cmd = 'ruby -S ruby-lint'
    version_args = '-S ruby-lint --version'
    version_re = r'(?P<version>\d+\.\d+\.\d+)'
    version_requirement = '>= 2.0.0'
    regex = (
        r'^.+?: (?:(?P<warning>warning)|(?P<error>error)): '
        r'line (?P<line>\d+), column (?P<col>\d+): '
        r'(?P<message>.+)'
    )
    tempfile_suffix = 'rb'
    config_file = ('--config', 'ruby-lint.yml')
