 getEnabledEngines = (configFilePath) ->
   configYaml = YAML.safeLoad(FS.readFileSync(configFilePath, "utf8"))
   (engine for engine, attrs of configYaml["engines"] when attrs["enabled"] == true)
+
+getPosEnd = (posEnd, posBeg) ->
+  if posBeg == posEnd
+    return posBeg + 2
+  else
+    posEnd || 120
 
 module.exports =
   config:

          return []

        configEnabledEngines = getEnabledEngines(configurationFilePath)
        linterEnabledEngines = (linter for linter in linterNameArray when (linter in configEnabledEngines))

        cmd = ["codeclimate analyze",
               "-f json",
               makeEngineString(linterEnabledEngines),
               "'" + atom.project.relativize(filePath) + "'",
               "< /dev/null"].join(" ")


            linterResults = []
            for issue in messages
              if (issue.location.positions)
                locLine = issue.location.positions.begin.line - 1
                locPosBeg = (issue.location.positions.begin.column - 1) || 0
                locPosEnd = getPosEnd(issue.location.positions.end.column, issue.location.positions.begin.column)
              else
                locLine = issue.location.lines.begin - 1
                locPosBeg = 0
                locPosEnd = 120

              do (issue) ->
                linterResults.push({
                  type: "Warning"
                  text: issue.description
                  filePath: filePath
                  range: [[locLine,locPosBeg], [locLine,locPosEnd]]
                })

            console.log("Code Climate analysis: " + (Date.now() - analysisBeginTime) + "ms")
            return linterResults
          )
