Skip to content

v0.0.17 throws "TypeError: Cannot call method 'iterateByType' of null" #39

@kristerkari

Description

@kristerkari

Using JSCS v1.7.3

my jsDoc options:

    "jsDoc": {
        "checkParamNames": true,
        "checkRedundantParams": true,
        "requireParamTypes": true,
        "checkReturnTypes": true,
        "requireReturnTypes": true,
        "checkTypes": true,
        "checkRedundantReturns": true,
        "checkRedundantAccess": true,
        "leadingUnderscoreAccess": "private"
    }

jscs-jsdoc v0.0.17 throws:

jscs server/**/*.js

TypeError: Cannot call method 'iterateByType' of null
    at Object.validateCheckParamNames (/node_modules/jscs-jsdoc/lib/rules/validate-jsdoc/check-param-names.js:14:16)
    at /node_modules/jscs-jsdoc/lib/rules/validate-jsdoc.js:96:27
    at Array.forEach (native)
    at /node_modules/jscs-jsdoc/lib/rules/validate-jsdoc.js:95:32
    at Array.forEach (native)
    at Object.JsFile.iterateNodesByType (/usr/local/lib/node_modules/jscs/lib/js-file.js:284:42)
    at /node_modules/jscs-jsdoc/lib/rules/validate-jsdoc.js:86:18
    at Array.forEach (native)
    at Object.module.exports.check (/node_modules/jscs-jsdoc/lib/rules/validate-jsdoc.js:78:29)
    at null.<anonymous> (/usr/local/lib/node_modules/jscs/lib/string-checker.js:285:26)

v0.0.16 works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions