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

from SublimeLinter.lint import Linter


class Jscs(Linter):

    """Provides an interface to jscs."""

    syntax = ('javascript', 'html', 'html 5')
    cmd = 'jscs -r checkstyle'
    config_file = ('-c', '.jscs.json')
    regex = (
        r'^\s+?<error line="(?P<line>\d+)" '
        r'column="(?P<col>\d+)" '
        # jscs always reports with error severity; show as warning
        r'severity="(?P<warning>error)" '
        r'message="(?P<message>.+?)"'
    )
    multiline = True
    selectors = {'html': 'source.js.embedded.html'}
    tempfile_suffix = 'js'


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

from SublimeLinter.lint import Linter


class Jscs(Linter):

    """Provides an interface to jscs."""

    syntax = ('javascript', 'html', 'html 5')
    cmd = 'jscs -r checkstyle'
    regex = (
        r'^\s+?<error line="(?P<line>\d+)" '
        r'column="(?P<col>\d+)" '
        # jscs always reports with error severity; show as warning
        r'severity="(?P<warning>error)" '
        r'message="(?P<message>.+?)"'
    )
    multiline = True
    selectors = {'html': 'source.js.embedded.html'}
    tempfile_suffix = 'js'
    config_file = ('--config', '.jscs.json', '~')

Use the full option name for clarity and also search in the user's home directory
Use the full option name for clarity and also search in the user's home directory

  
  """This module exports the jscs plugin class."""
  
  from SublimeLinter.lint import Linter
  
  
  class Jscs(Linter):
  
      """Provides an interface to jscs."""
  
      syntax = ('javascript', 'html', 'html 5')
      cmd = 'jscs -r checkstyle'
-     config_file = ('-c', '.jscs.json')
      regex = (
          r'^\s+?<error line="(?P<line>\d+)" '
          r'column="(?P<col>\d+)" '
          # jscs always reports with error severity; show as warning
          r'severity="(?P<warning>error)" '
          r'message="(?P<message>.+?)"'
      )
      multiline = True
      selectors = {'html': 'source.js.embedded.html'}
      tempfile_suffix = 'js'
+     config_file = ('--config', '.jscs.json', '~')
  
Use the full option name for clarity and also search in the user's home directory
## Code Before:

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

from SublimeLinter.lint import Linter


class Jscs(Linter):

    """Provides an interface to jscs."""

    syntax = ('javascript', 'html', 'html 5')
    cmd = 'jscs -r checkstyle'
    config_file = ('-c', '.jscs.json')
    regex = (
        r'^\s+?<error line="(?P<line>\d+)" '
        r'column="(?P<col>\d+)" '
        # jscs always reports with error severity; show as warning
        r'severity="(?P<warning>error)" '
        r'message="(?P<message>.+?)"'
    )
    multiline = True
    selectors = {'html': 'source.js.embedded.html'}
    tempfile_suffix = 'js'

## Instruction:
Use the full option name for clarity and also search in the user's home directory
## Code After:

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

from SublimeLinter.lint import Linter


class Jscs(Linter):

    """Provides an interface to jscs."""

    syntax = ('javascript', 'html', 'html 5')
    cmd = 'jscs -r checkstyle'
    regex = (
        r'^\s+?<error line="(?P<line>\d+)" '
        r'column="(?P<col>\d+)" '
        # jscs always reports with error severity; show as warning
        r'severity="(?P<warning>error)" '
        r'message="(?P<message>.+?)"'
    )
    multiline = True
    selectors = {'html': 'source.js.embedded.html'}
    tempfile_suffix = 'js'
    config_file = ('--config', '.jscs.json', '~')
