Sha256: bc291c48eb1bb6401c36b3a65ba49c715ce1fc831655b05df8cdd4cd27ef8993
Contents?: true
Size: 428 Bytes
Versions: 9
Compression:
Stored size: 428 Bytes
Contents
namespace :jslint do desc 'Run JSlint against the directories specified in config/jslint.yml' task :check do end end def jslint_config configuration_file = File.join(Rails.root, 'config/jslint.yml') if File.exists? configuration_file config = YAML.load_file(configuration_file)[source].symbolize_keys else $stderr.puts "config/jslint.yml' not found try rails g jslint:update_config" exit 1 end end
Version data entries
9 entries across 9 versions & 1 rubygems