module.exports = (grunt) ->
  grunt.config 'coffeelint',
    all: [
      '<%= watch.coffee.files %>'
    ]
    options:
      arrow_spacing:
        level: 'error'
      # https://github.com/clutchski/coffeelint/issues/201
      # colon_assignment_spacing:
      #   level: 'error'
      #   spacing:
      #     left: 0
      #     right: 1
      cyclomatic_complexity:
        level: 'error'
        value: 11 # http://stackoverflow.com/questions/20702/whats-your-a-good-limit-for-cyclomatic-complexity
      indentation:
        level: 'error'
        value: 2
      max_line_length:
        level: 'error'
        value: 120

  grunt.loadNpmTasks 'grunt-coffeelint'