         detail: "#{error.message}"
         dismissable: true
       handle()
-      callback([])
+      callback []
 
 
   lintOnFly: (textEditor) =>
     console.log 'lintOnFly'
     return new Promise (resolve, reject) =>
-      results = []
-
-      file = do textEditor.getPath
       tmpOptions = {
         prefix: 'AtomLinter'
-        suffix: "_#{path.basename file}"
+        suffix: "_#{path.basename do textEditor.getPath}"
       }
 
       temp.open(tmpOptions, (err, info) =>


    @cmd = cmd

  lintFile: (lintInfo, callback) ->
    console.log 'lintFile'
    results = []

        messages.push {
          type: type or 'Warning'
          text: match.message
          filePath: lintInfo.fileName
          range: [
            [match.line - 1, 0]
            [match.line - 1, 0]
