Skip to content

Commit

Permalink
updating jshintrb
Browse files Browse the repository at this point in the history
  • Loading branch information
rmurphey committed Jan 16, 2012
1 parent 17c9de9 commit 476cb19
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ group :test do
gem 'evergreen', :require => false
gem 'factory_girl', :require => false
gem 'fakefs', :require => false
gem 'jshintrb', '1.0.4', :git => 'git://github.com/Toura/jshintrb.git', :require => false
gem 'jshintrb', '1.1', :git => 'git://github.com/Toura/jshintrb.git', :require => false
#gem 'racc' # For CYGWIN to compile nokogiri
gem 'rspec', '2.6.0'
gem 'fakeweb', :require => false
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
GIT
remote: git://github.com/Toura/jshintrb.git
revision: 6bd1372f5b6de0467af9c6b823cba767e22856f2
revision: ae3078e9fe9e8f2bfb45e9a4918b2c477057755c
specs:
jshintrb (1.0.4)
jshintrb (1.1)
therubyracer (~> 0.8)

GEM
Expand Down Expand Up @@ -108,7 +108,7 @@ DEPENDENCIES
haml (= 3.1.2)
i18n
imagesize
jshintrb (= 1.0.4)!
jshintrb (= 1.1)!
json
kramdown
linecache (= 0.43)
Expand Down
22 changes: 14 additions & 8 deletions lib/tasks/jshint.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ require 'jshintrb'

desc "Run JSHint on app code"
task :jshint do
jsl = JSLint.new(:undef => false,
:strict => false,
:nomen => false,
:onevar => false,
:newcap => false,
:regexp => false,
:plusplus => false,
:linter => 'jshint')
jsl = JSLint.new({
:curly => true,
:bitwise => true,
:eqeqeq => true,
:immed => true,
:latedef => true,
:noempty => true,
:trailing => true,
:debug => true,
:funcscope => true,
:browser => true,
:dojo => true
# :onevar => true
})

found_errors = false

Expand Down

0 comments on commit 476cb19

Please sign in to comment.