desc 'Analyse Javascript with JSHint and Javascript Code Style checker'
task :analyse_javascript do
  puts 'Running Javascript code analysis...'
  system('npm run js') || raise('Javascript analysis failed')
end

require 'English'

desc 'Analyse Javascript with JSHint and Javascript Code Style checker'
task :analyse_javascript do
  puts 'Running Javascript code analysis...'
  system('npm run js') || exit($CHILD_STATUS.exitstatus)
end

Exit with correct exit code
Exit with correct exit code

Returns the correct exit code, rather than raising an exception.
