jshint passes - run 'node jshint/run.js'. running jshint with a couple jshint options and workarounds to allow certain jasmine-specific styles. many actual style problems are fixed. the jshint run is integrated into rake jasmine:lint.

This commit is contained in:
Steve Conover
2011-02-26 15:07:59 -08:00
parent 9f90c4eca5
commit f41af6c2d0
20 changed files with 184 additions and 139 deletions
+3 -1
View File
@@ -44,7 +44,7 @@ namespace :jasmine do
passed = false
end
if line.scan(/window/).length > 0
if line.scan(/window/).length > 0 && !line.include?("typeof")
puts "Dangerous window at #{src}:#{i}:\n > #{line}"
passed = false
end
@@ -55,6 +55,8 @@ namespace :jasmine do
puts "Lint failed!"
exit 1
end
system("node jshint/run.js") || exit(1)
end
desc 'Builds lib/jasmine from source'