mojito-cli-jslint
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -44,4 +44,11 @@ /* | ||
// add type-specific exclusions, if any | ||
exclude = exclude.concat(config.exclude[type]); | ||
if (config.exclude.hasOwnProperty(type)) { | ||
exclude = exclude.concat(config.exclude[type]); | ||
} | ||
// assume cwd if no paths were specified | ||
if (!sources.length) { | ||
sources = [env.cwd]; | ||
} | ||
// exec | ||
@@ -57,3 +64,3 @@ lintifier(sources, exclude, output); | ||
' type "app", "mojit", or "mojito"', | ||
' source mojit name or path', | ||
' source path(s) (required for type "mojit")', | ||
'', | ||
@@ -60,0 +67,0 @@ 'Options:', |
@@ -46,3 +46,3 @@ /* | ||
function afterScanning(errcount, total) { | ||
log.debug('scanning done. fs-errors: %d, items: %d', errcount, total); | ||
log.debug(['scan done. fs-errors:', errcount + ', items:', total].join(' ')); | ||
doneYet(); | ||
@@ -67,3 +67,3 @@ } | ||
var count = offenses.length, | ||
plural = count > 1 ? 's' : ''; | ||
plural = count > 1 ? 'errors' : 'error'; | ||
@@ -85,3 +85,3 @@ function perOffense(o) { | ||
log.error('%d error%s in %s', count, plural, pathname); | ||
log.error([count, plural, 'in', pathname].join(' ')); | ||
offenses.forEach(perOffense); | ||
@@ -99,3 +99,3 @@ } | ||
if (results.ok) { | ||
log.debug('✔ %s', pathname); | ||
log.debug('✔', pathname); | ||
} else { | ||
@@ -102,0 +102,0 @@ tally(pathname, results.errors); |
{ | ||
"name": "mojito-cli-jslint", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Provide the jslint command for mojito-cli", | ||
@@ -5,0 +5,0 @@ "main": "jslint.js", |
mojito-jslint | ||
========== | ||
[![Build Status](https://travis-ci.org/yahoo/mojito-cli-jslint.png?branch=rewrite)](https://travis-ci.org/yahoo/mojito-cli-jslint) | ||
[![Build Status](https://travis-ci.org/yahoo/mojito-cli-jslint.png?branch=develop)](https://travis-ci.org/yahoo/mojito-cli-jslint) | ||
@@ -12,3 +12,3 @@ This package provides the `jslint` command for the [`mojito-cli`](https://github.com/yahoo/mojito-cli). Install it with `npm install -g mojito-cli`. | ||
mojito jslint [options] [app|mojit|mojito] [path(s)] | ||
mojito jslint [options] [app|mojit] [path(s)] | ||
@@ -15,0 +15,0 @@ The default jslint options used, and the patterns of files or directories that will be ignored, are listed in `config.js`. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24369
20
545
0