Skip to content

AssertionError with "requireParamTypes": true #86

@tersmitten

Description

@tersmitten
AssertionError: Unable to add an error, `column` should be a positive number but -1 given
    at Object.Errors.add (/usr/lib/node_modules/jscs/lib/errors.js:43:9)
    at addError (/usr/lib/node_modules/jscs-jsdoc/lib/rules/validate-jsdoc.js:155:28)
    at /usr/lib/node_modules/jscs-jsdoc/lib/rules/validate-jsdoc.js:169:25
    at Object.validateParamTag (/usr/lib/node_modules/jscs-jsdoc/lib/rules/validate-jsdoc/require-param-types.js:17:16)
    at /usr/lib/node_modules/jscs-jsdoc/lib/rules/validate-jsdoc.js:135:27
    at Array.forEach (native)
    at DocComment.<anonymous> (/usr/lib/node_modules/jscs-jsdoc/lib/rules/validate-jsdoc.js:134:46)
    at Array.forEach (native)
    at DocComment.forEachTag [as iterate] (/usr/lib/node_modules/jscs-jsdoc/lib/jsdoc.js:65:19)
    at /usr/lib/node_modules/jscs-jsdoc/lib/rules/validate-jsdoc.js:128:28

Our .jscsrc looks like this:

{
    "preset": "yandex",
    "validateIndentation": "\t",
    "disallowQuotedKeysInObjects": "allButReserved",
    "requireCapitalizedConstructors": true,
    "safeContextKeyword": ["that"],

    "excludeFiles": [
        "**/node_modules/**"
    ],
    "plugins": [
        "jscs-jsdoc"
    ],
    "jsDoc": {
        "checkAnnotations": "jsdoc3",
        "checkParamNames": true,
        "checkRedundantParams": true,
        "checkReturnTypes": true,
        "checkRedundantReturns": true,
        "checkTypes": "strictNativeCase",
        "checkRedundantAccess": "enforceLeadingUnderscore",
        "leadingUnderscoreAccess": true,
        "enforceExistence": "exceptExports"
    }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions