               severity: 'error'
             }
           Resolve toReturn
+
       req.write(post_data)
       req.end()


  lint: (TextEditor) ->
    new Promise (Resolve) ->
      toReturn = []

      editorPath = TextEditor.getPath()


      req = http.request options, (res) ->
        res.on 'data', (chunk) ->
          received = received + chunk
        res.on 'end', () ->
          jsonObject = JSON.parse received
          matches = jsonObject["matches"]
          for match in matches
            offset = match['offset']
