Sha256: 05b3cf2300f0adfbc8cd499c5ba7bb42905a001d601f86d44cdaa25c6cda95fe
Contents?: true
Size: 1.44 KB
Versions: 20
Compression:
Stored size: 1.44 KB
Contents
if Rails.env.development? begin require "jshintrb/jshinttask" vendor_files = [ 'app/assets/javascripts/common/routes', 'app/assets/javascripts/common/bastion-routes', 'app/assets/javascripts/common/chosen.jquery', 'app/assets/javascripts/common/spin.min', 'app/assets/javascripts/html5/excanvas', 'app/assets/javascripts/html5/html5' ].join(",") Jshintrb::JshintTask.new :jshint do |t| t.pattern = 'app/assets/javascripts/**/*.js' t.exclude_pattern = "{#{vendor_files}}.js" t.globals = { "KT" => true, "Katello" => true, "angular" => false, } t.options = { :bitwise => true, :curly => true, :eqeqeq => true, :forin => true, :immed => true, :latedef => false, # TODO: reenable this and fix :newcap => false, :noarg => true, :noempty => true, :nonew => true, :plusplus => true, :regexp => true, :undef => false, :strict => false, :trailing => true, :browser => true, :jquery => true, :passfail => false, :white => false, :sub => true, :lastsemic => true, :smarttabs => true } end rescue LoadError warn "install jshintrb gem" end end
Version data entries
20 entries across 20 versions & 1 rubygems