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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user