jscs-jsdoc
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -221,4 +221,20 @@ var doctrineParser = require('doctrine'); | ||
} else if (argument.type === 'NewExpression' && type === 'object') { | ||
result = result || true; | ||
} else if (argument.type === 'NewExpression') { | ||
result = result || ((type === 'object') || (type === argument.callee.name.toLowerCase())); | ||
var c = argument.callee; | ||
var exam = c.name; | ||
if (!exam && c.type === 'MemberExpression') { | ||
var cur = c; | ||
exam = []; | ||
while (cur.object) { | ||
exam.unshift(cur.property.name); | ||
cur = cur.object; | ||
} | ||
exam.unshift(cur.name); | ||
exam = exam.join('.'); | ||
} | ||
exam = exam.toLowerCase(); | ||
result = result || (type === exam); | ||
} | ||
@@ -225,0 +241,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "JSCS jsdoc plugin", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"main": "lib/index", | ||
@@ -8,0 +8,0 @@ "homepage": "https://github.com/jscs-dev/jscs-jsdoc", |
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
23781
553