Sha256: e10a2fd1b4d71bfce04db142162d24b82eb66cbe4e72bf5d1669181442a04a85
Contents?: true
Size: 555 Bytes
Versions: 2
Compression:
Stored size: 555 Bytes
Contents
desc "lint application javascript" task :coffeelint do conf = {} config_file = [].tap {|files| files << ENV['COFFEELNT_CONFIG'] if ENV['COFFEELENT_CONFIG'] files << 'config/coffeelint.json' if ENV['HOME'] files << "#{ENV['HOME']}/coffeelint.json" files << "#{ENV['HOME']}/.coffeelint.json" end }.compact.detect {|file| File.exists?(file) } conf[:config_file] = config_file if config_file success = Coffeelint.run_test_suite('app', conf) and Coffeelint.run_test_suite('spec', conf) fail "Lint!" unless success end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coffeelint-1.8.1 | lib/tasks/coffeelint.rake |
coffeelint-0.4.0 | lib/tasks/coffeelint.rake |