
"""This module exports the scss-lint plugin linter class."""

import os
from SublimeLinter.lint import RubyLinter, util


class Scss(RubyLinter):

    """Provides an interface to the scss-lint executable."""

    syntax = ('css', 'sass', 'scss')
    cmd = 'ruby -S scss-lint'
    regex = r'^.+?:(?P<line>\d+) (?:(?P<error>\[E\])|(?P<warning>\[W\])) (?P<message>[^`]*(?:`(?P<near>.+?)`)?.*)'
    tempfile_suffix = 'scss'
    defaults = {
        '--include-linter:,': '',
        '--exclude-linter:,': ''
    }
    inline_overrides = ('bundle-exec', 'include-linter', 'exclude-linter')
    comment_re = r'^\s*/[/\*]'
    config_file = ('--config', '.scss-lint.yml', '~')


"""This module exports the scss-lint plugin linter class."""

import os
from SublimeLinter.lint import RubyLinter, util


class Scss(RubyLinter):

    """Provides an interface to the scss-lint executable."""

    syntax = ('css', 'sass', 'scss')
    cmd = 'ruby -S scss-lint'
    regex = r'^.+?:(?P<line>\d+)(?::(?P<column>\d+))? (?:(?P<error>\[E\])|(?P<warning>\[W\])) (?P<message>[^`]*(?:`(?P<near>.+?)`)?.*)'
    tempfile_suffix = 'scss'
    defaults = {
        '--include-linter:,': '',
        '--exclude-linter:,': ''
    }
    inline_overrides = ('bundle-exec', 'include-linter', 'exclude-linter')
    comment_re = r'^\s*/[/\*]'
    config_file = ('--config', '.scss-lint.yml', '~')

Fix regex for different output from scss-lint 0.49.0
Fix regex for different output from scss-lint 0.49.0

  
  """This module exports the scss-lint plugin linter class."""
  
  import os
  from SublimeLinter.lint import RubyLinter, util
  
  
  class Scss(RubyLinter):
  
      """Provides an interface to the scss-lint executable."""
  
      syntax = ('css', 'sass', 'scss')
      cmd = 'ruby -S scss-lint'
-     regex = r'^.+?:(?P<line>\d+) (?:(?P<error>\[E\])|(?P<warning>\[W\])) (?P<message>[^`]*(?:`(?P<near>.+?)`)?.*)'
+     regex = r'^.+?:(?P<line>\d+)(?::(?P<column>\d+))? (?:(?P<error>\[E\])|(?P<warning>\[W\])) (?P<message>[^`]*(?:`(?P<near>.+?)`)?.*)'
      tempfile_suffix = 'scss'
      defaults = {
          '--include-linter:,': '',
          '--exclude-linter:,': ''
      }
      inline_overrides = ('bundle-exec', 'include-linter', 'exclude-linter')
      comment_re = r'^\s*/[/\*]'
      config_file = ('--config', '.scss-lint.yml', '~')
  
Fix regex for different output from scss-lint 0.49.0
## Code Before:

"""This module exports the scss-lint plugin linter class."""

import os
from SublimeLinter.lint import RubyLinter, util


class Scss(RubyLinter):

    """Provides an interface to the scss-lint executable."""

    syntax = ('css', 'sass', 'scss')
    cmd = 'ruby -S scss-lint'
    regex = r'^.+?:(?P<line>\d+) (?:(?P<error>\[E\])|(?P<warning>\[W\])) (?P<message>[^`]*(?:`(?P<near>.+?)`)?.*)'
    tempfile_suffix = 'scss'
    defaults = {
        '--include-linter:,': '',
        '--exclude-linter:,': ''
    }
    inline_overrides = ('bundle-exec', 'include-linter', 'exclude-linter')
    comment_re = r'^\s*/[/\*]'
    config_file = ('--config', '.scss-lint.yml', '~')

## Instruction:
Fix regex for different output from scss-lint 0.49.0
## Code After:

"""This module exports the scss-lint plugin linter class."""

import os
from SublimeLinter.lint import RubyLinter, util


class Scss(RubyLinter):

    """Provides an interface to the scss-lint executable."""

    syntax = ('css', 'sass', 'scss')
    cmd = 'ruby -S scss-lint'
    regex = r'^.+?:(?P<line>\d+)(?::(?P<column>\d+))? (?:(?P<error>\[E\])|(?P<warning>\[W\])) (?P<message>[^`]*(?:`(?P<near>.+?)`)?.*)'
    tempfile_suffix = 'scss'
    defaults = {
        '--include-linter:,': '',
        '--exclude-linter:,': ''
    }
    inline_overrides = ('bundle-exec', 'include-linter', 'exclude-linter')
    comment_re = r'^\s*/[/\*]'
    config_file = ('--config', '.scss-lint.yml', '~')
