from SublimeLinter.lint import RubyLinter


class Mdl(RubyLinter):
    executable = 'mdl'
    regex = r'^.+?:(?P<line>\d+): (?P<warning>(?P<message>[^`]*))'
    line_col_base = (1, 1)
    tempfile_suffix = 'md'
    defaults = {
        'selector': 'text.html.markdown'
    }

    def cmd(self):
        """Support bundle-exec."""

        if self.get_view_settings().get('bundle-exec', False):
            return ('bundle', 'exec', self.executable)
        return (self.executable_path)

@@ -24,20 +24,16 @@
  import 
-Ruby
 Linter%0A%0A
@@ -47,12 +47,8 @@
 Mdl(
-Ruby
 Lint
@@ -60,26 +60,36 @@
     
-executable 
+cmd
 = 
+%5B
 'mdl'
+, '$%7Btemp_file%7D'%5D
 %0A   
@@ -275,215 +275,4 @@
  %7D%0A%0A
-    def cmd(self):%0A        %22%22%22Support bundle-exec.%22%22%22%0A%0A        if self.get_view_settings().get('bundle-exec', False):%0A            return ('bundle', 'exec', self.executable)%0A        return (self.executable_path)%0A

modify code to get rid of deprecation warnings