 "use strict"
 Beautifier = require('./beautifier')
 path = require('path')
-temp = require('temp').track()
 
 module.exports = class Rubocop extends Beautifier
   name: "Rubocop"


  beautify: (text, language, options, context) ->
    fullPath = context.filePath
    [projectPath, relativePath] = atom.project.relativizePath(fullPath)

    # Find the rubocop path
    @Promise.all([

      rubocopArguments = [
        "--auto-correct"
        "--force-exclusion"
        "--stdin", "atom-beautify.rb" # filename is required but not used
      ]
      rubocopArguments.push("--config", tempConfig) if tempConfig?
      @debug("rubocop arguments", rubocopArguments)
