Code coverage report for jshint-solid/index.js

Statements: 38.89% (7 / 18)      Branches: 25% (2 / 8)      Functions: 100% (1 / 1)      Lines: 38.89% (7 / 18)      Ignored: none     

All files » jshint-solid/ » index.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30    1 1 1 1         1   1 1                                
#!/usr/bin/env node
 
(function checkForUpdates() {
  var updateNotifier = require('update-notifier');
  var notifier = updateNotifier();
  Iif (notifier.update) {
    notifier.notify();
  }
}());
 
var jshintSolid = require('./src/jshint-solid');
 
Eif (module.parent) {
  module.exports = jshintSolid;
} else {
  var exists = require('fs').existsSync;
  var jshintrc = process.argv[2];
  if (!process.argv[2]) {
    console.log('trying .jshintrc filename');
    jshintrc = '.jshintrc';
    if (!exists(jshintrc)) {
      var pkg = require('./package.json');
      console.error('usage', pkg.name, '<.jshintrc filename>');
      process.exit(-1);
    }
  }
  jshintSolid(process.argv[2]);
}