```ruby
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
```

Exit with correct exit code
user
```ruby
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
```
assistant