Comparing version 1.2.5 to 1.2.6
{ | ||
"name": "ramllint", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "RAML Lint", | ||
@@ -5,0 +5,0 @@ "author": "Tyler Smith <TylerSmith@quickenloans.com", |
@@ -44,3 +44,3 @@ [![Build Status](https://travis-ci.org/QuickenLoans/ramllint.svg)](https://travis-ci.org/QuickenLoans/ramllint) | ||
ramllint('./path/to/api.raml', function (results) { | ||
ramllint.lint('./path/to/api.raml', function (results) { | ||
// NOTE: results will only contain 'error' and will exclude 'warning' and 'info' | ||
@@ -47,0 +47,0 @@ // to get an array of all log entries use: `ramllint.results()` |
#!/usr/bin/env node | ||
var exitcode = 0; | ||
var path = require('path'), | ||
@@ -13,2 +11,3 @@ | ||
exitcode = 0, | ||
ramllinter = new Linter(); | ||
@@ -42,4 +41,5 @@ | ||
if( entry.level == 'error' ) | ||
if(entry.level === 'error') { | ||
exitcode = 1; | ||
} | ||
@@ -55,4 +55,5 @@ output = '\n' + | ||
}); | ||
process.exit( exitcode ); | ||
process.exit(exitcode); | ||
} | ||
}); |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
56650
960
0