
from SublimeLinter.lint import Linter


class Shellcheck(Linter):
    """Provides an interface to shellcheck."""

    syntax = 'shell-unix-generic'
    cmd = 'shellcheck --format gcc -'
    regex = (
        r'^.+?:(?P<line>\d+):(?P<col>\d+): '
        r'(?:(?P<error>error)|(?P<warning>(warning|note))): '
        r'(?P<message>.+)$'
    )

    defaults = {
        '--exclude=,': ''
    }
    inline_overrides = 'exclude'
    comment_re = r'\s*#'


from SublimeLinter.lint import Linter


class Shellcheck(Linter):
    """Provides an interface to shellcheck."""

    syntax = ('shell-unix-generic', 'bash')
    cmd = 'shellcheck --format gcc -'
    regex = (
        r'^.+?:(?P<line>\d+):(?P<col>\d+): '
        r'(?:(?P<error>error)|(?P<warning>(warning|note))): '
        r'(?P<message>.+)$'
    )

    defaults = {
        '--exclude=,': ''
    }
    inline_overrides = 'exclude'
    comment_re = r'\s*#'

Handle new sublime syntax: bash
Handle new sublime syntax: bash

  
  from SublimeLinter.lint import Linter
  
  
  class Shellcheck(Linter):
      """Provides an interface to shellcheck."""
  
-     syntax = 'shell-unix-generic'
+     syntax = ('shell-unix-generic', 'bash')
      cmd = 'shellcheck --format gcc -'
      regex = (
          r'^.+?:(?P<line>\d+):(?P<col>\d+): '
          r'(?:(?P<error>error)|(?P<warning>(warning|note))): '
          r'(?P<message>.+)$'
      )
  
      defaults = {
          '--exclude=,': ''
      }
      inline_overrides = 'exclude'
      comment_re = r'\s*#'
  
Handle new sublime syntax: bash
## Code Before:

from SublimeLinter.lint import Linter


class Shellcheck(Linter):
    """Provides an interface to shellcheck."""

    syntax = 'shell-unix-generic'
    cmd = 'shellcheck --format gcc -'
    regex = (
        r'^.+?:(?P<line>\d+):(?P<col>\d+): '
        r'(?:(?P<error>error)|(?P<warning>(warning|note))): '
        r'(?P<message>.+)$'
    )

    defaults = {
        '--exclude=,': ''
    }
    inline_overrides = 'exclude'
    comment_re = r'\s*#'

## Instruction:
Handle new sublime syntax: bash
## Code After:

from SublimeLinter.lint import Linter


class Shellcheck(Linter):
    """Provides an interface to shellcheck."""

    syntax = ('shell-unix-generic', 'bash')
    cmd = 'shellcheck --format gcc -'
    regex = (
        r'^.+?:(?P<line>\d+):(?P<col>\d+): '
        r'(?:(?P<error>error)|(?P<warning>(warning|note))): '
        r'(?P<message>.+)$'
    )

    defaults = {
        '--exclude=,': ''
    }
    inline_overrides = 'exclude'
    comment_re = r'\s*#'
