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

Version Path
katello-3.0.2 lib/katello/tasks/jshint.rake
katello-2.4.5 lib/katello/tasks/jshint.rake
katello-3.0.1 lib/katello/tasks/jshint.rake
katello-2.4.4 lib/katello/tasks/jshint.rake
katello-3.0.0 lib/katello/tasks/jshint.rake
katello-2.4.3 lib/katello/tasks/jshint.rake
katello-3.0.0.rc7 lib/katello/tasks/jshint.rake
katello-3.0.0.rc5 lib/katello/tasks/jshint.rake
katello-2.4.2 lib/katello/tasks/jshint.rake
katello-3.0.0.rc4 lib/katello/tasks/jshint.rake
katello-3.0.0.rc3 lib/katello/tasks/jshint.rake
katello-3.0.0.rc2 lib/katello/tasks/jshint.rake
katello-3.0.0.rc1 lib/katello/tasks/jshint.rake
katello-2.4.1 lib/katello/tasks/jshint.rake
katello-2.4.0 lib/katello/tasks/jshint.rake
katello-2.4.0.rc3 lib/katello/tasks/jshint.rake
katello-2.4.0.rc2 lib/katello/tasks/jshint.rake
katello-2.4.0.rc1 lib/katello/tasks/jshint.rake
katello-2.2.2 lib/katello/tasks/jshint.rake
katello-1.5.0 lib/katello/tasks/jshint.rake