 {CompositeDisposable} = require 'atom'
-helpers = require('atom-linter')
-path = require('path')
+helpers = require 'atom-linter'
+path = require 'path'
 
 COALA_MIN_VERSION = '0.3.0'
 module.exports =

             '\\r?[\\n$]'

    @resultSeverity = [
      "Info",    # Result severity 0 = Info
      "Normal",  # Result severity 1 = Normal
      "Major"    # Result severity 2 = Major
    ]

    # Check version of coala
    version = require('child_process').spawn(@executable, ['--version'])
    version.stdout.on 'data', (data) ->
      if data <= COALA_MIN_VERSION
        atom.notifications.addError \
          'You are using an old version of coala !',
          'detail': 'Please upgrade your version of coala.\n' +
                    'Minimum version required: ' + COALA_MIN_VERSION

  deactivate: ->
    @subscriptions.dispose()

      description: 'Command or path to executable.'

  activate: ->
    require('atom-package-deps').install 'coala'

    @subscriptions = new CompositeDisposable
    @subscriptions.add atom.config.observe 'coala.executable', (newValue) =>
