def run
      raise NoEngineException, "No JS engine available" unless js_engine
      Utils.log "Running JSHint via #{js_engine.name}:\n\n"

      errors = @file_list.map { |file| process_file(file) }.flatten

      if errors.length == 0
        Utils.log "\nNo JS errors found."
      else
        Utils.log "\nFound #{Utils.pluralize(errors.length, 'error')}."
        raise LintCheckFailure, "JSHint test failed."
      end
    end
def run
      raise NoEngineException, "No JS engine available" unless js_engine
      Utils.log "Running JSHint via #{js_engine.name}:\n\n"

      errors = @file_list.map { |file| process_file(file) }.flatten

      if errors.length == 0
        Utils.log "\nNo JS errors found."
      else
        Utils.log "\nFound #{Utils.pluralize(errors.length, 'error')}."
        raise LintCheckFailure, "JSHint test failed."
      end
    end
available options:
 :paths => [list of paths...]
 :exclude_paths => [list of exluded paths...]
 :config_path => path to custom config file (can be set via JSHint.config_path too)