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

from SublimeLinter.lint import NodeLinter, WARNING


class PugLint(NodeLinter):
    """Provides an interface to pug-lint."""

    cmd = 'pug-lint ${temp_file} ${args}'
    regex = r'^.+?:(?P<line>\d+)(:(?P<col>\d+) | )(?P<message>.+)'
    multiline = False
    tempfile_suffix = 'pug'
    error_stream = util.STREAM_BOTH
    defaults = {
        'selector': 'text.pug, source.pypug, text.jade',
        '--reporter=': 'inline'
    }
    default_type = WARNING


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

from SublimeLinter.lint import NodeLinter, WARNING


class PugLint(NodeLinter):
    """Provides an interface to pug-lint."""

    cmd = 'pug-lint ${temp_file} ${args}'
    regex = r'^.+?:(?P<line>\d+)(:(?P<col>\d+) | )(?P<message>.+)'
    multiline = False
    on_stderr = None
    tempfile_suffix = 'pug'
    defaults = {
        'selector': 'text.pug, source.pypug, text.jade',
        '--reporter=': 'inline'
    }
    default_type = WARNING

Remove `error_stream`; Add `on_stderr` to make it works
Remove `error_stream`; Add `on_stderr` to make it works

  
  """This module exports the PugLint plugin class."""
  
  from SublimeLinter.lint import NodeLinter, WARNING
  
  
  class PugLint(NodeLinter):
      """Provides an interface to pug-lint."""
  
      cmd = 'pug-lint ${temp_file} ${args}'
      regex = r'^.+?:(?P<line>\d+)(:(?P<col>\d+) | )(?P<message>.+)'
      multiline = False
+     on_stderr = None
      tempfile_suffix = 'pug'
-     error_stream = util.STREAM_BOTH
      defaults = {
          'selector': 'text.pug, source.pypug, text.jade',
          '--reporter=': 'inline'
      }
      default_type = WARNING
  
Remove `error_stream`; Add `on_stderr` to make it works
## Code Before:

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

from SublimeLinter.lint import NodeLinter, WARNING


class PugLint(NodeLinter):
    """Provides an interface to pug-lint."""

    cmd = 'pug-lint ${temp_file} ${args}'
    regex = r'^.+?:(?P<line>\d+)(:(?P<col>\d+) | )(?P<message>.+)'
    multiline = False
    tempfile_suffix = 'pug'
    error_stream = util.STREAM_BOTH
    defaults = {
        'selector': 'text.pug, source.pypug, text.jade',
        '--reporter=': 'inline'
    }
    default_type = WARNING

## Instruction:
Remove `error_stream`; Add `on_stderr` to make it works
## Code After:

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

from SublimeLinter.lint import NodeLinter, WARNING


class PugLint(NodeLinter):
    """Provides an interface to pug-lint."""

    cmd = 'pug-lint ${temp_file} ${args}'
    regex = r'^.+?:(?P<line>\d+)(:(?P<col>\d+) | )(?P<message>.+)'
    multiline = False
    on_stderr = None
    tempfile_suffix = 'pug'
    defaults = {
        'selector': 'text.pug, source.pypug, text.jade',
        '--reporter=': 'inline'
    }
    default_type = WARNING
