coffeelint
Advanced tools
Comparing version 1.15.2 to 1.15.7
@@ -12,2 +12,3 @@ (function() { | ||
} | ||
this.quiet = options.quiet; | ||
} | ||
@@ -32,2 +33,5 @@ | ||
e = errors[i]; | ||
if (!(!this.quiet || e.level === 'error')) { | ||
continue; | ||
} | ||
level = e.level; | ||
@@ -34,0 +38,0 @@ if (level === 'warn') { |
@@ -10,2 +10,3 @@ (function() { | ||
} | ||
this.quiet = options.quiet; | ||
} | ||
@@ -30,2 +31,5 @@ | ||
e = errors[i]; | ||
if (!(!this.quiet || e.level === 'error')) { | ||
continue; | ||
} | ||
if (e.context) { | ||
@@ -32,0 +36,0 @@ e.message += " " + e.context + "."; |
@@ -72,3 +72,3 @@ (function() { | ||
e = errors[i]; | ||
if (this.quiet && e.level !== 'error') { | ||
if (!(!this.quiet || e.level === 'error')) { | ||
continue; | ||
@@ -75,0 +75,0 @@ } |
@@ -10,2 +10,3 @@ (function() { | ||
} | ||
this.quiet = options.quiet; | ||
} | ||
@@ -27,3 +28,5 @@ | ||
e = errors[i]; | ||
this.print("<issue line=\"" + e.lineNumber + "\"\n lineEnd=\"" + ((ref1 = e.lineNumberEnd) != null ? ref1 : e.lineNumber) + "\"\n reason=\"[" + (this.escape(e.level)) + "] " + (this.escape(e.message)) + "\"\n evidence=\"" + (this.escape(e.context)) + "\"/>"); | ||
if (!this.quiet || e.level === 'error') { | ||
this.print("<issue line=\"" + e.lineNumber + "\"\n lineEnd=\"" + ((ref1 = e.lineNumberEnd) != null ? ref1 : e.lineNumber) + "\"\n reason=\"[" + (this.escape(e.level)) + "] " + (this.escape(e.message)) + "\"\n evidence=\"" + (this.escape(e.context)) + "\"/>"); | ||
} | ||
} | ||
@@ -30,0 +33,0 @@ this.print('</file>'); |
@@ -10,2 +10,3 @@ (function() { | ||
} | ||
this.quiet = options.quiet; | ||
} | ||
@@ -18,3 +19,20 @@ | ||
RawReporter.prototype.publish = function() { | ||
return this.print(JSON.stringify(this.errorReport.paths, void 0, 2)); | ||
var e, er, errors, path, ref; | ||
er = {}; | ||
ref = this.errorReport.paths; | ||
for (path in ref) { | ||
errors = ref[path]; | ||
er[path] = (function() { | ||
var i, len, results; | ||
results = []; | ||
for (i = 0, len = errors.length; i < len; i++) { | ||
e = errors[i]; | ||
if (!this.quiet || e.level === 'error') { | ||
results.push(e); | ||
} | ||
} | ||
return results; | ||
}).call(this); | ||
} | ||
return this.print(JSON.stringify(er, void 0, 2)); | ||
}; | ||
@@ -21,0 +39,0 @@ |
{ | ||
"name": "coffeelint", | ||
"description": "Lint your CoffeeScript", | ||
"version": "1.15.2", | ||
"version": "1.15.7", | ||
"homepage": "http://www.coffeelint.org", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 3 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
27
1
153855
25
3639