   rubocopCommand: ->
     commandWithArgs = atom.config.get('rubocop-auto-correct.rubocopCommandPath')
                                 .split(/\s+/).filter((i) -> i)
+                                .concat(["--format", "json"])
     [commandWithArgs[0], commandWithArgs[1..]]
 
   autoCorrectBuffer: (buffer)  ->

        .concat(@projectRootRubocopConfig(filePath))

      stdout = (output) =>
        @rubocopOutput(filePath.replace(/.+\//, ""), output)
      stderr = (output) =>
        @rubocopOutput(filePath.replace(/.+\//, ""), output)

      which command, (err) =>
        if (err)

      ''' }
    )

  rubocopOutput: (output) ->
    debug = atom.config.get('rubocop-auto-correct.debugMode')
    notification = atom.config.get('rubocop-auto-correct.notification')
    console.log(output) if debug

    data = JSON.parse(output)
    console.log(data) if debug

    if (data.summary.offense_count == 0)
      atom.notifications.addSuccess("No offenses found") if notification
    else
      atom.notifications.addWarning("#{data.summary.offense_count} offenses found!")
      for file in data.files
        for offense in file.offenses
          if offense.corrected
            atom.notifications.addSuccess(
              "Line: #{offense.location.line}, Col:#{offense.location.column} (FIXED)",
              { detail: "#{offense.message}" }
            )
          else
            atom.notifications.addWarning(
              "Line: #{offense.location.line}, Col:#{offense.location.column}",
              { detail: "#{offense.message}" }
            )

  makeTempFile: (filename) ->
    directory = temp.mkdirSync()
